Displaying 1 result from an estimated 1 matches for "surrogate2".
Did you mean:
surrogate
2010 May 18
1
proportion of treatment effect by a surrogate (fitting multivariate survival model)
...ve variables: time, delta, treatment, and surrogate.
Should I repeat the dataset (2x) and stack, creating the variables:
time1 (time repeated 2x), delta1 (delta repeated 2x), treatment1 (same
as treatment, but 0's for the 2nd set), treatment2 (0's in first set,
then same as treatment), and surrogate2 (0's in first set, then same
as treatment), and id (label the subject, so each id should have 2
observations).
Thus, a dataset with n observations will become 2n observations. To fit, do
fit <- coxph(Surv(time1,delta1) ~ treatment1 + teatment2 + surrogate2
+ strata(id)
?
>From here, I...