Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: assigning characteristics...


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: assigning characteristics...
Date   Wed, 22 Feb 2006 20:49:49 -0500

Almost there, Scott.

bysort id: gen age_hh=age if parent=="hh"
bysort id: replace age_hh=sum(age_hh)

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html


*
*   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