Hello Everyone!
I was wondering if you could assist me in generating an age variable in a panel dataset I am working on.
I have the date of the birth (date_birth) as well as the year variable (that indicates the year of the observation).
I was trying to do (year - data_birth)/365.25
However that is probably not working because while the year is yyyy, the date_birth is dd/mm/yyyy. How do I make the conversion?
The specific date of the year we can use to calculate the age is not important for my analysis, as long as it is standard in the data.
Also not sure if it is important, but I am using Stata 13
Related Posts with Generating age variable in pannel dataset
Predict using multilevel versus logitHello! I'd like to know why when I use multilevel models the estimates in of sample are differents …
variable labels sex age response freq 0 0 0 26 0 0 1 12 0 0 2 7 0 1 0 9 0 1 1 21 0 1 2 15…
teffects and covariates for matching.Hi. I am trying to use the teffects to implement matching using Nearest Neighbor Matching. The stata…
Multiple Response and Chi-SquaresHello, I am following up on my previous post on multiple response variables (available here: ) with…
sum of dummy coefficients?Dear All, Suppose that I run the regression Code: webuse grunfeld, clear reg invest mvalue kstock …
Subscribe to:
Post Comments (Atom)
0 Response to Generating age variable in pannel dataset
Post a Comment