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
Error when use xtcsd (_variable merge already defined)Hi, I have a problem when I use xtcsd. After I run using xtreg depvar indepvar, fe , and then use "x…
Help with multilevel survival analysisI am currently conducting a study that follows patients over 30 days to see if they have an event. P…
Deleting some observations within a variable when conditions are metHi everyone, I have a datasets which looks like this: Code: * Example generated by -dataex-. For …
Merge 2 datasets: individual and county level datasetsI need to merge two datasets. One has individual-level data and the other has county-level data. I…
Dummy Variable as Dependent Variable in a Panel RegressionGood Day Everyone! I am doing a panel regression on have a problem in running panel models in Stata…
Subscribe to:
Post Comments (Atom)
0 Response to How to define date from 2000 in Stata
Post a Comment