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
Diff-in-Diff with Cross-sectional DataI collected data to measure the effectiveness of a government educational program on poverty reducti…
Table after tuples/forvalHello everyone, I need to run several regressions using the tuples command: Code: tuples roa1 roa…
Creating a dummy variable with "or" conditionHi everyone! I want to create a dummy variable such that it gives me 1 when either one or both of t…
When I do K-Wallis test, it divides one of my factorial categorical variable into 2 (picture attached) What could possibly be the reason?In this picture I have 4 different groups of cocaine use (IV, ingestion, nasal, smoke). Why smoke (s…
Mi merge problemHello everyone! I have encountered a problem in my analysis for my thesis. Despite having around 20…
Subscribe to:
Post Comments (Atom)
0 Response to egen maxdate gives dates 01/01/2500
Post a Comment