[Limdep Nlogit List] Saving Discrete Choice

William Greene wgreene at stern.nyu.edu
Tue Nov 25 12:14:58 EST 2008


This relates to how you are issuing the WRITE command. The command should
be on the screen in the text editor, and issued by highlighting and pressing
the GO button. If it is embedded in a PROC, it will cause this diagnostic.
That is the only way that error 243 occurs because of a command. In other
cases, the diagnostic will arise if there is a problem with the file name,
itself.  In the case below, if ;File=c:\working\temp.LPJ $, if the .LPJ is
not changed to something else, such as .txt, a problem will occur opening 
the file. Finally, if the folder "\working" does not exist, the file error
will occur.
/B. Greene

----- Original Message -----
From: crescent1 at juno.com
To: limdep at limdep.itls.usyd.edu.au
Sent: Monday, November 24, 2008 5:19:02 PM GMT -05:00 Columbia
Subject: Re: [Limdep Nlogit List] Saving Discrete Choice

Bill,

Thanks for your quick response. Changing the variables to Choice1/2/etc fixed that part and the new variables are now created and visible in my project screen. A ";Format=(8f8.8)" line fixes the non-panel aspect of the data save.

However, the WRITE command does not complete "Error   243: File system error. Files may not be opened by PROCEDURES" which doesn't show up in google. I have tried changing the location that the WRITE command saves to with no change (thinking that it may not want me to write to a particular directory).

Again, thanks for your time.

-- William Greene <wgreene at stern.nyu.edu> wrote:
Rick. Your CREATE command was not carried out. 

----- 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
_______________________________________________
Limdep site list
Limdep at limdep.itls.usyd.edu.au
http://limdep.itls.usyd.edu.au


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



More information about the Limdep mailing list