Yes. -missing()- should work for you.
The Statalist FAQ advises
"The current version of Stata is 8.2. Please specify
if you are using an earlier version; otherwise, the
answer to your question is likely to refer to commands
or features unavailable to you."
Nick
[email protected]
Fanwell Bokosi
> Nick, Thank you for the codes. The first part of the command
> is working
> properly, that is
>
> bysort hhid (indicode member): gen firstnonmiss=indicode[1]
>
> When I try the second command
> bysort hhid (indicode member): replace indicode=indicode[1]
> if mi(indicode)
> & member==1
>
> I am getting the folowing error message:
>
> Unknown function mi()
> r(133);
>
> I should alos mention that I am using stata 7.0. Has this
> anything to do
> with the verison of stata I am using?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/