In Stata, I need to calculate the age of a patient at the last check-up by using the date of birth and the check-up date. All the data is inputted via spreadsheet. The dates in the spreadsheet are formatted like this: 6/12/57, 8/1/08, etc. I am unsure on how to convert the string to an integer for subtraction and not sure on how to correctly write the dates (or how to change all the dates to fit the format). I have a large data set so it would seem impractical to individually change each date.
Related Posts with Calculating Age Using Dates
teffects ipwra and diff-in-diff with inverse probability weightingI am evaluating the impact of a project with NON-RANDOMIZED multiple interventions (3 treatment grou…
how to set exponential function restriction on coefficents?Dear all, I am trying to estimate the following equation: ln m_nc=α_n + ∑α_nk *C_c^k + β_nc^core …
Harmonizing region codes across survey wavesI have four survey waves of data for individuals with a variable on the region they live in "region_…
Sample size for equivalence trial for cluster randomized trialI want to calculate the required sample size for an equivalence trial, which is a sub-trial within t…
Help with randomly scrambling the districtsDear all, I hope you are doing well. I wanted to run a placebo test where I rerun my main estimatio…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating Age Using Dates
Post a Comment