Statalist The Stata Listserver


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

st: RE: 9999, matching data, fixed effect probit etc...


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: 9999, matching data, fixed effect probit etc...
Date   Fri, 24 Nov 2006 17:38:23 -0000

I'll try a few of these. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Nick Cox
> Sent: 24 November 2006 17:22
> To: statalist@hsphsun2.harvard.edu
> Subject: st: 9999, matching data, fixed effect probit etc...
> 
> 
> Nirina F. had problems sending this to the list. 
> I edited slightly using the -cmdname- convention. 
> 
> Nick
> n.j.cox@durham.ac.uk 
> 
> -----Original Message-----
> 
> I have a few questions:
> 
> 1- How do I create husband and wife variable in my data where 
> I have data on marital status, line number of respondent in 
> the household, the sex, etc..

Husbands are male and married. 
Wives are female and married. 

That's easy. What you don't say is whether you have households
that may include spouses from more than one marriage. If 
you do, how would you work who is married to whom? 

Not enough information to say anything useful, I think. 
Need to see examples from your data. 

> Then  when I have identified the husband and wife, how do I test 
> whether they gave the same answer on the question of number of 
> kids they have. This is basically to test whether there was 
> mistake in the data. 

That depends on the answer to the previous question. 

> 2- var2 is categorical having 4 answers,sex, year of birth. 
> Plot var2 on y axis, and year of birth on x axis but only for 
> female. I tried -tw histogram- but it doesn't give the graph 
> I would like to get. 

Don't understand this. 

> 3- I have the following:
> year of birth: 4 digits
> year of current marriage with 4 digit years but when respondent 
> don't know or for other reasons, they can respond to 9999 
>   so now, if I would like to calculate age at marriage, I get 
> for example 8069 (9999-1930)  for people having responded 9999 
> for the question year of current marriage. 
> 
> Could you suggest me please how I can transform this into 
> meaningful values or anything else? 

You should -recode- 9999 to missing. 
 

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