[Limdep Nlogit List] manually recognizing missing data
William Greene
wgreene at stern.nyu.edu
Wed Aug 1 02:03:32 EST 2007
Phil. Try creating XREG = 0 first, so it exists with no missing values, then
execute the command I sent you.
/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
Ph. 212.998.0876
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:49 am
Subject: Re: [Limdep Nlogit List] manually recognizing missing data
>
> Bill: many thanks; but: are you sure? I deleted the old xrej, then
> copied your suggestion (changing the name of myvar, obviously) and
> ran it. Result: xrej, when viewed in the data editor, still has a
> blank (standing for -999, right?) in the position where the
> variable
> has something missing. I thought it might be sensitive to the skip
> setting, so I deleted xrej, did noskip$ and tried again, with the
> same result. Am I forgetting something?
>
>
>
>
>
> At 12:33 PM 7/31/2007, you wrote:
> >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
> > >
> >
> >_______________________________________________
> >Limdep site list
> >Limdep at limdep.itls.usyd.edu.au
> >http://limdep.itls.usyd.edu.au
>
>
> ------------------------
> 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