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
enquiry about using likelihood ratio test when employing conditional logistics regression !Hello, I am testing a categorical variable (ethnicity) with a binary outcome (death). I want to obta…
ForecastingI have been using STATA to do some forecasting on stock market data. When I generate the forecasts a…
xtlogit with one dummy predictorHello all, I have been looking for days for an answer to this question, but have not found an answe…
Generalise value of dummy variable to all observations of a given panel IDHi, I need to set the value of a dummy variable = 1 for all observations of a given panelID, if it …
No observations r(2000)Dear everyone, I am working on my masters thesis and I am trying to make a twostep system gmm regre…
Subscribe to:
Post Comments (Atom)
0 Response to Enter vs. Origin - Landmark survival analysis
Post a Comment