Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Tips on working with multiple waves RAND HRS
From
Maarten Buis <[email protected]>
To
[email protected]
Subject
Re: st: Tips on working with multiple waves RAND HRS
Date
Tue, 18 Sep 2012 09:30:23 +0200
--- From: [email protected]
>> I am currently working with a RAND HRS dataset consisting of 8 waves
>> of observations. This implies that for a single variable, such as
>> income, the dataset consits of 8 variables of observations, for
>> instance r1income, r2income,..., r8income. This works fine when
>> considering the effects seperately, i.e. if I want to calculate mean
>> in wave 1 and 8, but it is a bit comprehensive when one wants to
>> retrieve the mean of the full dataset.
On Mon, Sep 17, 2012 at 7:03 PM, meenakshi beri wrote:
> What I had done while working with RAND HRS dataset was this: I had created a new variable rincome in which I had stacked income (r1income,r2income,r3income,.....) from all waves by hhidpn (ID variable) and wave. n working with multiple waves RAND HRS
If you want to go that route, than it is probably easier to work with
your data in long format. To move from wide to long format you can use
-reshape-, see -help reshape-.
-- Maarten
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany
http://www.maartenbuis.nl
---------------------------------
*
* 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/