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

Re: st: egen


From   "Hans J. Baumgartner" <[email protected]>
To   [email protected]
Subject   Re: st: egen
Date   Fri, 31 Jan 2003 16:12:52 +0100

Use - reshape wide -  to produce ss1husband and ss1wife
then
gen ss2 = .
replace ss2 if wife==. & husband==1
replace ss2 if husband ==. & wife==.

I guess this is not the most straight forward method to do this.
Hans

Rodrigo Brice�o schrieb:

Dear friends. Following the procedure asked yesterday I still have doubts:

How can I assign to a wife or husband a value of 3 if the wife or husband
have a SS1 equal to 1. This is a kind of procedure that relates the
condition present in the previous or in the next member of the family:r

rel ss1 ss2
husband 1 1
wife . 3 (assigned with procedure)

or

wife . 3 (assigned with procedure)
husband 1 1


Thanks

Rodrigo



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

--
Hans J. Baumgartner Deutsches Institut f�r Wirtschaftsforschung (DIW Berlin)
German Institute for Economic Research
Abt. Staat / Dept. Public Economics
K�nigin-Luise-Str. 5; 14195 Berlin (Dahlem) Tel.: 030/89789-307; Fax.: 030/89789-114
http://www.diw.de



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