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
Multinomial logistic regression - RRR is too bigHi, I am running a regression where a firm performance measure ( a categorical variable) is regress…
nbreg only converges when starting from poisson estimatesI am using nbreg (Stata MP 15.1) to analyze the rate of days on which patients use two different dru…
How to make a point estimate in mixed model: the effect of group at a certain point of the slopeDear Stata users, I have a mixed model (see the syntax below) with main effects of group (two dicho…
NIS database helpHi, I am realtively new to large database analysis and trying to work on the NIS 2011 database. Does…
odksplit for ODK and SurveyCTODear all, I am happy to announce that odksplit is now available in ssc. odksplit is a module to spl…
Subscribe to:
Post Comments (Atom)
0 Response to Count the number of years
Post a Comment