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
how to count the numbers of variables that meet some requirements in the matrix?I want to count the numbers of variables whose p value is less than .2 after running a regression mo…
How to allow for time-varying treatment effects and heterogeneous treatment subgroup effects in generalized DD?Hi all, I am running a generalized DD to estimate the effect on infant mortality rate (imr) of a he…
fmm invalid nameI'm trying to run a finite mixture model Code: fmm 2: logit y x1 x2 x3 However, I get the error "2 …
Dropping lowest n values of a group variableHi, my question is a bit silly but I am just not being very bright today As you can see from the da…
Mininum edge weights in the path between two nodes (Network Analsysis)Dear Statalisters, (Stata version 15.1) I have a network N and I am using the user-developed packag…
Subscribe to:
Post Comments (Atom)
0 Response to Enter vs. Origin - Landmark survival analysis
Post a Comment