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
Current and Lagged Values of an Independent Variable in xtabond2Hi everyone! May I ask if it is technically correct to include both current and lagged values of an …
Creating a sum variable which depends on 2 other variablesHello! I am currently working on a panel dataset containing, amongst others, the variables "compani…
how to control for individual fixed effects in Stata?I know one method can be: Code: regress y x1 x2 i.id, vce(robust) But the problem is in my data set…
Attempting to create a histogram with logarithmic axesHello, I am attempting to create a frequency histogram of a variable (called M) with a logarithmic …
Regression based for different time periods based on a conditionDear Stata Users Yesterday I posted a question under the head, "Regression-based on different time p…
Subscribe to:
Post Comments (Atom)
0 Response to age at first child
Post a Comment