Dear all,
I need to calculate age using date of birth (dob) and survey submission date (end_date).
I have got some negative value for age, that's because stata takes dates after 2000 as 1900.
E.g., 20 Feb 20 - 01 Jan 80; How do I tell stata that 20 Feb 20 is 20/02/2020?Array
Thank you!
Maggie
Related Posts with How to define date from 2000 in Stata
Multi-groups or aggregated binary groups in treatment variable for difference-in-difference models?Hi Statalisters I'm doing a difference-in-difference (DID) analysis and I wonder whether I'm correc…
Tracking dropped observation countsI am using Robert Picard's excellent project package. I would like to keep track of the number of ob…
Simple parallel trends for Difference in DifferenceHello, I am doing a very basic Difference in Difference. I get my results for the DD fine, but for m…
histogram for continuous variableHello, I'm new in the forum and have a question for you. I work with panel data coming from a resea…
Exporting what was done on Stata onto MathlabDear Stata users, Code: * Example generated by -dataex-. To install: ssc install dataex clear inp…
Subscribe to:
Post Comments (Atom)
0 Response to How to define date from 2000 in Stata
Post a Comment