[Limdep Nlogit List] manually recognizing missing data

William Greene wgreene at stern.nyu.edu
Wed Aug 1 01:33:35 EST 2007


Phil.  For some purposes (like this one), you can treat the -999 as if it were a
real value.  Thus,
CREATE ; If ( myvar < -998 )  XREJ = 1 $
/Bill

************************************************
Professor William Greene
Department of Economics
Stern School of Business
New York University
44 West 4th St., Rm. 7-78
New York, NY   10012
Fax. 212.995.4218
URL. http://www.stern.nyu.edu/~wgreene
Email. wgreene at stern.nyu.edu
************************************************

----- Original Message -----
From: "Philip A. Viton" <viton.1 at osu.edu>
Date: Tuesday, July 31, 2007 10:21 am
Subject: [Limdep Nlogit List] manually recognizing missing data

> 
> Is there some create command which will allow you to create a 
> variable which has (say) a 1 where another variable has missing 
> data 
> and zero otherwise? I've tried
> 
> create;if (myvar=-999) xrej=1$
> 
> but this seems to put a missing data code in positions where myvar 
> has missing data!
> 
> Thanks!
> 
> 
> 
> 
> ------------------------
> Philip A. Viton
> City Planning, Ohio State University
> 275 West Woodruff Avenue, Columbus OH 43210
> viton.1 at osu.edu
> 
> _______________________________________________
> Limdep site list
> Limdep at limdep.itls.usyd.edu.au
> http://limdep.itls.usyd.edu.au
> 




More information about the Limdep mailing list