Hello,
I am looking at childless men in the UK and I am using panel data which has 9 waves. childlessness is defined as not having a biological children at age (x). I need to create the dependent variable which is (childless) and that is those men who have not had a biological child by age x. one way to get the age cut off is to look at the age of first child and then deiced the age cut off of childlessness.
I have my panel as this
wave pidp (individual id) hidp (household id) (varlist)
I have these variables in my dataset:
year of first child
fathers'birthday
men
I did this command:
gen ageatfirst= year of first child -fathers'birthday
i think I need to use the hidp to do this command is that right? any advice please
Related Posts with age at first child
Marginal Effect of an Interaction Term after Logit (i.dummy#c.continous)Dear All, Here is my data. I am running a logit model and tried to get marginal effects. Here is m…
Generating four new variables out of one variable in a panel datasetHello, I'm trying to create four new variables in the following dataset: Code: input long pidp fl…
Generate a new variable as the mean of individuals over timeI have the following data set, a panel dataset, (it is an example of what I have, the data set is mu…
Stata 17 - bayesmh not replicating a simple example already done in Stata 15Dear Forum Members, I'm trying to replicate in Stata 17 this (quite simple) example from Stata Yout…
Planting multiple regressionHey, I hope you all safe and well. I'm a new to STATA and doing multiple regression modeling using x…
Subscribe to:
Post Comments (Atom)
0 Response to age at first child
Post a Comment