Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: replacement of missing values [was: RE: Help]


From   "Fanwell Bokosi" <ffkb2@kent.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: replacement of missing values [was: RE: Help]
Date   Tue, 8 Mar 2005 11:52:50 -0000

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/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index