I'm working on a survival analysis for patients undergoing cancer treatment. To account for immortal time bias, I want to perform a Landmark analysis.
I have a variable that provides the survival time, from day of diagnosis to last follow-up/death (var: DX_LASTCONTACT_DEATH_MONTHS).
I have a second variable that provides the time from diagnosis to first "treatment". (var: DX_RX_STARTED_DAYS)
I want my landmark time to be the the day of first treatment. As a sensitivity analysis, I want to also set the landmark time to 30 and 90 days.
My code is:
stset DX_LASTCONTACT_DEATH_DAYS, failure(PUF_VITAL_STATUS==0) origin(time DX_RX_STARTED_DAYS)
For the 30 and 90 days:
stset DX_LASTCONTACT_DEATH_DAYS, failure(PUF_VITAL_STATUS==0) origin(time 30)
I can't really figure out if I should use "origin" or "enter" to perform the Landmark analysis. I've read the manual and can't really figure it out.
What is the correct code: "enter" or "origin"?
Related Posts with Enter vs. Origin - Landmark survival analysis
Time dummies in SYS-GMM modelHi, I estimated SYS-GMM model with time dummies for different periods (like 2006-2008, 2009-2015, 2…
adding a zero in the middle of a string variableDear Statalist users, I have a string variable(patient id) in the form ED6/01/001 ED6/01/002 ED6/01…
rangestat from SSC in combination with percentile functionConcerning rangestat from SSC Hi, I am looking for a way to combine rangestat with a percentile fu…
Panel data- xtgls vs xtregHello! I am conducting research into the determinants of FDI using panel data. From previous studie…
Can strL be disabled? It is breaking all my pre-16 code.The strL data type is clearly useful, but the fact that it can't be used for a merge is breaking bac…
Subscribe to:
Post Comments (Atom)
0 Response to Enter vs. Origin - Landmark survival analysis
Post a Comment