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
Staggered Difference in Difference*Hi My data has the following setup. I have individual level data for years 1995, 2000, 2005, 2010 a…
Panel dataDear Members I hope all is well. Please, I would like to know that : 1-) Should I use Xtset Command …
Error uninstalling a package: Criterion matches more than one packageDavid Roodman posted yesterday a discussion of xtabond2, contributed by him I installed the package …
Exporting shapefiles with nonconsecutive, multipart polygons using GeotoolsI am using the -geotools- command to export polygon features to an ESRI shapefile. The input geograp…
Margins not estimableHello! I am trying to look at the effect mandatory elections (Valplikt) has on satisfaction with dem…
Subscribe to:
Post Comments (Atom)
0 Response to Generating age variable in pannel dataset
Post a Comment