Hello everyone
I am trying to get the difference between two dates to calculate follow up per patient
I am using a long format dataset with various observations per patient id, no missing values.
I can't spot why for some patients I get 01/01/2500 as the maxdate date, which is wrong.
edate format is float %dM_d,_CY , is this an issue?
This is what I'm using:
bysort patid : egen maxdate = max(edate)
Does anyone know why this might be happening?
Thank you,
Louisa
Related Posts with egen maxdate gives dates 01/01/2500
meglmHello All, I have two datasets, one with a binary outcome and the second with a count outcome. I ha…
Invalid Syntax r198Hi everyone, I'm having issues with a couple of my recoding commands and wonder if you could help. …
Descriptive statistics with imputed data baseHi Statalisters, I am doing my Master's thesis with an imputed database. A doubt has arisen for me w…
Comparing SlopesHi there, In a trend analysis, I am looking at whether hours worked changed across 15 years. Then I…
Replace values of string variables based on a fraction of my datasetHello. I'm using a mapping table linking a question (varname) to its short label (label) in a survey…
Subscribe to:
Post Comments (Atom)
0 Response to egen maxdate gives dates 01/01/2500
Post a Comment