[Limdep Nlogit List] Saving Discrete Choice

William Greene wgreene at stern.nyu.edu
Tue Nov 25 08:45:13 EST 2008


Rick. Your CREATE command was not carried out. "b" is a reserved name,
used for the matrix containing the coefficient vector after fitting a
model. Therefore, your CREATE command didn't execute.  Change the name
"b" to something else.  Also, "n" is also a reserved name - the curent
sample size.  So, you have to change this as well.  You cannot
use WRITE to create an LPJ (project) file. WRITE is for creating ASCII
files. So, change the file name to temp.txt.  Finally if you are trying 
to make a multiple record file for the discrete choice routines, you
need to make sure that your lines only have 8 numbers on them. So,
add ;Format=(8f12.4) to your command. 
Happy file making.
/Bill Greene

----- Original Message -----
From: crescent1 at juno.com
To: limdep at limdep.itls.usyd.edu.au
Sent: Monday, November 24, 2008 4:35:07 PM GMT -05:00 US/Canada Eastern
Subject: [Limdep Nlogit List] Saving Discrete Choice

Dear List,

I am attempting to convert my dataset properly for use in discrete choice analysis. I am using NLOGIT 4.0 and using the published information as a guide. I have this procedure in place:
CREATE ;a=(CHOICE=1);b=(CHOICE=2);c=(CHOICE=3);d=(CHOICE=4);e=(CHOICE=5);f=(CHOICE=6);g=(CHOICE=7);h=(CHOICE=8);i=(CHOICE=9);j=(CHOICE=10);k=(CHOICE=11);l=(CHOICE=12);m=(CHOICE=13);n=(CHOICE=14) $

WRITE ;a, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME, 
b, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
c, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
d, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
e, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
f, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
g, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
h, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
i, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
j, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
k, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
l, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
m, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME,
n, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES, INCOME
;File=c:\working\temp.LPJ $

With a project loaded that has columns of CHOICE, EMP, MAN, TECHEMP, SERVICES, FREEWAY, TAXES and INCOME. Whenever I run this code, nothing happens. Any idea what I'm doing wrong such that I don't end up with a nice, happy, prepared discrete choice file?

Thanks for your time.

Regards,

Rick

____________________________________________________________
Lose up to 20 lbs in one month with a new diet. Click here.
http://thirdpartyoffers.juno.com/TGL2131/fc/PnY6rbuBja2c0DRLXRQCmq57EoQO8ozqP2ckT9rW4TxYxcZEreltW/
_______________________________________________
Limdep site list
Limdep at limdep.itls.usyd.edu.au
http://limdep.itls.usyd.edu.au



More information about the Limdep mailing list