[Limdep Nlogit List] testing the list is now operational again

Zein Kallas Calot zein.kallas at upc.edu
Fri Feb 17 00:27:32 AEDT 2017


Dear all, 
I followed the Nlogit 5 reference guide manual on page N-567 to calculate the conditional confidence
interval of parameters for each individual after estimating an RPL model. This is the code that I
used (example with 2 random attribute for simplicity)

CALC ; Ran (12345) $ 
NLOGIT;Lhs=YC1;Choices=ALT1,ALT2,NO;
Rhs=A1,A2,A3,A4
;RPL;Fcn=A1(n),A2(n)
;PDS=8
;halton
;parameters
$

the conditional confidence interval of parameters

MATRIX ; bn = beta_i ; sn = sdbeta_i $ 

CREATE ; bA1n = 0 ; bA2n = 0 $
CREATE ; sA1n = 0 ; sA2n = 0 $
NAMELIST ; betan = bA1n, bA2n $
NAMELIST ; sbetan = sA1n, sA2n $
CREATE ; betan = bn $ 
CREATE ; sbetan = sn $ 

CREATE ; vbA1n = sA1n^2 ; vbA2n = sA2n^2 $ 

CALC ; List ; sdbA1n = Sqr(xbr(vbA1n) + Var(bA1n)) 
                      ; sdbA2n = Sqr(xbr(vbA2n) + Var(bA2n)) $ 

CREATE ; lowerbA1 = bA1n - 2*sA1n ; upperbA1 = bA1n + 2*sA1n $ 
CREATE ; lowerbA2 = bA2n - 2*sA2n ; upperbA2 = bA2n + 2*sA2n $

CREATE ; person = Trn(1,1) $ 

CALC ; meanbA1n = Xbr(bA1n) $ 
CALC ; highbA1n = meanbA1n + 2*sdbA1n $ 
CALC ; lowbA1n = meanbA1n - 2*sdbA1n $ 

CALC ; meanbA2n = Xbr(bA2n) $ 
CALC ; highbA2n = meanbA2n + 2*sdbA2n $ 
CALC ; lowbA2n = meanbA2n - 2*sdbA2n $ 

PLOT ; Lhs = person ; Rhs = lowerbA1,upperbA1 
; Centipede 
; Title = Confidence Limits for b_A1 for normal Model 
; Bars = meanbA1n,highbA1n,lowbA1n  $ 

PLOT ; Lhs = person ; Rhs = lowerbA2,upperbA2 
; Centipede 
; Title = Confidence Limits for b_A2 for normal Model 
; Bars = meanbA2n,highbA2n,lowbA2n  $

Questions: 
1.	Is this code correct? Or I missed something?
2.	The Figures were plotted for each row in the data and not each person (i.e. for the total
number of rows: Number of persons * 8 choice sets * 3 alternatives). How can I correct for that to
obtain a similar figure of the Manual (Figure N29.7)
3.	Is it possible to extract the values of the confidence interval by person and attribute in a
separate data set?

Best regards

Zein Kallas 
CREDA
Barcelona

-----Mensaje original-----
De: Limdep [mailto:limdep-bounces at itls.usyd.edu.au] En nombre de David Hensher via Limdep
Enviado el: 10 February 2017 02:43
Para: limdep at itls.usyd.edu.au
CC: David Hensher <david.hensher at sydney.edu.au>
Asunto: [Limdep Nlogit List] testing the list is now operational again

This is a test only

David

--
DAVID HENSHER FASSA, PhD| Professor and Founding Director Institute of Transport and Logistics
Studies | The University of Sydney Business School

THE UNIVERSITY OF SYDNEY
Rm 201, Building H73| The University of Sydney | NSW | 2006 Street Address: 378 Abercrombie St,
Darlington NSW 2008 T +61 2 9114 1871 | F +61 2 9114 1863 | M +61 418 433 057 E
David.Hensher at sydney.edu.au | W sydney.edu.au/business/itls

Celebrating 25 years of ITLS: 1991-2016 http://youtu.be/s2D0T1crZwY ERA Rank 5 (Transportation and
Freight Services) Co-Founder of the International Conference Series on Competition and Ownership of
Land Passenger Transport (The 'Thredbo' Series) http://www.thredbo-conference-series.org/
Join the ITLS group on LinkedIn
Second edition of Applied Choice Analysis now available at www.cambridge.org/9781107465923


CRICOS 00026A
This email plus any attachments to it are confidential. Any unauthorised use is strictly prohibited.
If you receive this email in error, please delete it and any attachments.
Please think of our environment and only print this e-mail if necessary.

_______________________________________________
Limdep site list
Limdep at itls.usyd.edu.au
http://limdep.itls.usyd.edu.au




More information about the Limdep mailing list