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

Re: st: BHPS data manipulation


From   "Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: BHPS data manipulation
Date   Tue, 14 Jun 2005 05:01:29 +0100 (BST)

Uaquap wrote:

> Hello !
> I use 10 waves of BHPS and i want to create a sample of
> households
> for which marital statut change from cohabiting couple to
> married couple.
> My problem is to define the best strategy to do this task
> given that marital statut variable is
> given in the individual file data.

For the benefit of other Statalisters who don't know what BHPS means, the
British Household Panel Survey (http://iserwww.essex.ac.uk/ulsc/bhps/) is
undertaken annually across c.5500 British households every year. It has
now completed 13 waves.

Assuming that you have information on marital status for each household,
then the simplest solution would be to do this:

. g subset=1 if w1status!=w2status
. replace subset=1 if w2status!=w3status

[...]

. mvencode subset, mv(0)

You'll need to be careful, however, of household cases where marital
status changes more than once, in which case you'll have to -generate-
seperate subset variables; but this shouldn't happen too often, even in
ten annual waves of the BHPS.

Hope that helps.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: clive.nicholas@ncl.ac.uk
Newcastle University  |http://www.ncl.ac.uk/geps

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
conditions.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index