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
Moran's I and spatial weights matrixHello everybody, I wish to compute the Moran's I statistic and I'm following the code written by Pi…
expand data at the beginning of the panelHi all, I try to create new missing values in a dataset, in order to obtain the same time period fo…
ginidesc questionsHi all, I am new to this forum and a very new STATA user so any help or suggestions at all is appre…
Statistics tableHi, I have a dataset for 12 countries, and looking to generate a table similar to the attached one. …
Plotting output from stpm2.I'm looking to plot differences in survival among patients in different treatment groups. The KM cur…
Subscribe to:
Post Comments (Atom)
0 Response to Help with converting dates from fractional/decimal form to recognized form in Stata
Post a Comment