Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Creating a variable which collects info on other members


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Creating a variable which collects info on other members
Date   Sat, 7 May 2011 13:26:57 +0100

This is an FAQ. -search members, FAQ- in Stata.

Nick

On 7 May 2011, at 13:13, Vincenzo Carrieri <vincenzo.carrieri@gmail.com> wrote:

Dear Statalisters,

I need to create a variable which collects the information on another
household member.
In particular, I have a variable weight (var name) for each individual
and a dummy variable  which is equal to one if the person is married
with the head of household (the head of household is identified by a
dummy variable relpar (var name) which is equals to one when the
person is head of houseold).

I need to create a variable that for each head of household collects
the weight of his wife  (or husband).
How can I do this on stata?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index