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
insufficient observationsHi Everybody, Someone can help me ? I have run the regression as a fixed effects model xtreg GDP In…
Proper model for highly skewed dependent variable.Hello, I had previously asked a similar question, but it was partly unanswered, so I'm narrowing do…
Differences in differences with matchingHi, I'm working with a survey data which covers 5 rounds (1995, 2000, 2005 , 2010 and 2015). Howeve…
Nested logit model VS two binary logit modelsHello, I have a quick question regarding the nested logit model. I am trying to develop a model as …
How to pairwise t-test slopes of a three-way interaction?Hi, I hope you had a merry Christmas. Currently I face difficulties on how to pairwise t-test a th…
Subscribe to:
Post Comments (Atom)
0 Response to Help with converting dates from fractional/decimal form to recognized form in Stata
Post a Comment