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
Understanding xtabond2 and ixtivreg2Hello, Another question from my side, this time pertaining to GMM models. I am looking at the code …
Merging annual data with quarterly dataHey everybody, I am having trouble with merging two of my data sets for the past 2 days. I have trie…
Testing text on local macro dereferenceBecause the Stata User's Guide PDF is printed in a typeface that does not display punctuation identi…
Merging one file with every other file in folderHello, I am trying to merge one file in a folder with every other file in it by looping through eve…
testing coefficients within groups after a PSM diff-in-diffI'm using Stata 14 with Windows 10 OS. I'm running PSM diff-in-diff using command diff. I'd like to…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating Age Using Dates
Post a Comment