[Limdep Nlogit List] spot the error?

Philip A. Viton viton.1 at osu.edu
Tue Aug 19 00:23:08 EST 2008


Can anyone detect the problem with the .lim command file shown below? 
(nlogit 3). It's driving me nuts. What happens is this: I load in my 
data, and then the command file. I highlight the commands and run 
them. Dstats on the result shows that t1962 and t1994 have mean zero, 
ie that these two lines have not "taken". (The data for the time 
variable does in fact contain entries for these two years). This is 
repeatable, both by re-highlighting and re-running; and by repeating 
the entire sequence after re-starting nlogit.

But if I now open a new command window and type "create;" then 
cut-and-paste the 1964 line ; and finally replace the ending ";" with 
a "$" and run THAT line, t1962 now seems to be OK. I'm a little 
concerned that I can't see what is going wrong, because it might also 
affect other transformations where the failure isn't as obvious.

(I can supply a test dataset if anyone wants to experiment).

=========== command file ===========

create;
if(year=1996) t1996=1;
if(year=1995) t1995=1;
if(year=1994) t1994=1;
if(year=1993) t1993=1;
if(year=1992) t1992=1;
if(year=1991) t1991=1;
if(year=1990) t1990=1;
if(year=1989) t1989=1;
if(year=1988) t1988=1;
if(year=1987) t1987=1;
if(year=1986) t1986=1;
if(year=1985) t1985=1;
if(year=1984) t1984=1;
if(year=1983) t1983=1;
if(year=1982) t1982=1;
if(year=1981) t1981=1;
if(year=1980) t1980=1;
if(year=1979) t1979=1;
if(year=1978) t1978=1;
if(year=1977) t1977=1;
if(year=1976) t1976=1;
if(year=1975) t1975=1;
if(year=1974) t1974=1;
if(year=1973) t1973=1;
if(year=1972) t1972=1;
if(year=1971) t1971=1;
if(year=1970) t1970=1;
if(year=1969) t1969=1;
if(year=1968) t1968=1;
if(year=1967) t1967=1;
if(year=1966) t1966=1;
if(year=1965) t1965=1;
if(year=1964) t1964=1;
if(year=1963) t1963=1;
if(year=1962) t1962=1;
if(year=1961) t1961=1;
if(year=1960) t1960=1$

======================= end command file

------------------------
Philip A. Viton
City Planning, Ohio State University
275 West Woodruff Avenue, Columbus OH 43210
viton.1 at osu.edu




More information about the Limdep mailing list