Statalist The Stata Listserver


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

st: replace value for all person


From   [email protected]
To   [email protected]
Subject   st: replace value for all person
Date   Wed, 03 Jan 2007 18:45:06 +0100

I wish you an happy new year.
I have a question about calculated a new variable that have the same value for all person in the house.
I have a datset where the variables are: hid(ident house), pid(personal ident), houseincome(income in the house), wagefemel(wage of wife)
and income( houseincome - wagefemel)

hid pid houseincome wagefemal income
1 1 100 0 100
1 2 100 10 90
1 3 100 0 100


I have need that the house income is the house income minus wagefemal for ech pid in the same house(hid) or 90.
I created wagefemal by hid, but not change.
thanks a lot for your help.
C.N.



















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