Hi,
I have a question of calculating the number of years in Stata.
In the data, each ID has an Issue_Date in form '25 Jun 05' or '01 Aug 85'. The baseline date is 201509, and I would like to calculate the years each ID was in business.
For instance, if the Issue_Date is '04 May 96', the years of business would be 13 years.
I think I would have to change the format of the date then do the calculation...
It would be really helpful if I can get advice! Thank you very much.
Related Posts with Count the number of years
Difference in Difference Approach for Panel datahi I performed a Lab experiment on 34 people (17 in control and 17 in treatment). I played 3 rounds …
Is there a particular reason why Stata under Linux doesn't export .wmf files?Fellow Statalisters (especially StataCorp): Is there a particular reason why, in Stata under Linux,…
Synthetic Controls - String VariablesI am trying to run the npsynth command (Abadie, Diamond, Hainmueller, 2009) with a database of gravi…
Seasonality graphicsHi, i need help! I'm testing seasonality in trend research about a rare disease. I found statistic…
Difference-in-difference multiple time periodsDear all For my research, I want to estimate the effect of introducing direct election of mayors in…
Subscribe to:
Post Comments (Atom)
0 Response to Count the number of years
Post a Comment