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
Foreach invalid syntaxI am new to stata and keep getting 'invalid syntax' for the following commad: foreach diagnosis bre…
Please help! Quadratic Curves Inverting WRONGLY!Dear all, I use Stata16 and I humbly seek help. I have 2 cases where the parabolic curves are inver…
How to drop date row from datasetI had a dataset which didn't contain month or year columns (I imported monthly spss file with no dat…
How to do a Pareto ChartHi, I need to do a Pareto chart in his original form, not in the modified version implemented with p…
Is there a STATA command to create clusters which are homogenous between them? (inter-cluster homogeneity)I'm currently facing an issue in Stata. So, I kindly ask you, if you can help me. The problem is: I…
Subscribe to:
Post Comments (Atom)
0 Response to Count the number of years
Post a Comment