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
Stata 15.1 close after exceeding the limit of scrollbufsizeI have noticed that the Stata suddenly close and loosing my unsaved do files. I think it is because …
checking the imputed valuesHi all, I have watched a video by chuck huber about multiple imputation. i want to know how to check…
Merging 2 datasets on overlapping period of timeI have a question related to merging two datasets on an overlapping period of time. I have found som…
Random effect logistic regressionHi everyone I have recently started to use Stata, and confused about how I should interpret the res…
Seemingly unrelated regression (sureg) & Testing for significant differences of a coefficient across more than two equationsI will use sureg (seemingly unrelated regression) to analyze my data. I need to test my coefficients…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating Age Using Dates
Post a Comment