stata
I have a bunch of firms and the date they were started, but don’t know the exact code to give me the age of each firm. Can anyone help?
First get the start date into a STATA date variable, then use this and c(current_date) to get the firm’s age.
See “Computations with elapsed dates” at http://www.ats.ucla.edu/stat/stata/modules/dates.htm, and http://www.stata.com/support/faqs/data/dateandtime.html.
All content is licensed under CC BY-SA 3.0.