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

st: RE: RE: RE: data managment [correction]


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: data managment [correction]
Date   Mon, 8 Jul 2002 21:17:19 +0100

The last bit of my previous posting needs revision: 
 
> bysort hhold (nS) : gen S_age = meanS_age[3 - _n] 

Should be 

bysort hhold (nS) : gen S_age = meanS_age[2] if _n == 1 

That's the husbands. 

by hhold : replace S_age = meanS_age[1] if S_age == . & S_id < . 

That's the wives.  

Nick 
[email protected] 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index