Hey everyone,
I'm a student who needs help with this particular problem. I have in my Stata dataset a variable that is shown in fractional/decimal form to represent the date of birth of participants. I'm trying to convert them to an appropriate date variable that Stata can recognize, but for the life of me I have no clue on how to do so or where to start. The help file has everything on dates except in this way so I'm hoping to get any help that I can from here.
I have figured out how the decimal form was calculated, but do not know where to go from there, or how to compute this through Stata in the first place. I have been provided with an example, id #1 was born on 71.514 and it corresponds to 7th July 1971. Let us assume the year has 365.25 days, accounting for the leap year every 4 years.
Any help that I can get from this is very much appreciated!
Related Posts with Help with converting dates from fractional/decimal form to recognized form in Stata
Can't correctly convert timeseries time variable daily to monthly format in STATA 17.Hello, I am a novice in stata, but I have spent several hours trying to solve this issue without any…
Calculate total grants company_id year grant co_001 2003 1 co_001 2004 0 co_001 2005 1 co_001 2005 1 co_002 20…
GMM xtabond2 with external IVsHello miracle makers, I would like to use GMM and external IVs at the same time and struggling to s…
Interpreting coefficients in log-linear model when independent var is percentIf I run a model where the dependent variable is log sales price of a home and the independent varia…
Calculate total grants company_id year grant co_001 2003 1 co_001 2004 0 co_001 2005 1 co_001 2005 1 co_002 20…
Subscribe to:
Post Comments (Atom)
0 Response to Help with converting dates from fractional/decimal form to recognized form in Stata
Post a Comment