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
How to change label position with coeffplot ?Good morning everyone, I have the following code that plots my coefficient : Code: coefplot /// (…
Can you help me write Two-step system GMM command ?Hello everyone, to not take from ure time much, im trying to run Two-step system GMM and i dont kno…
How to show p-value in sembuilder path diagram?Dear Statalist: I am conducting analysis using the command sem and sembuilder. Can somebody teach m…
Calculate AUC and diagnostic accuracy for each outcome after mlogitHi all, I am trying to fit a multinomial model for four outcomes using mlogit in Stata. I wonder i…
how to create a table that display a variable's summary stats by year and statusHi! As indicated in the title, I wonder how I can create a table to display a variable's summary st…
Subscribe to:
Post Comments (Atom)
0 Response to egen maxdate gives dates 01/01/2500
Post a Comment