Description Usage Arguments Examples
Creates an SurvCF object that combines survival and counter factual exposure information. Derived from an RPSFT model.
1 |
x |
An RPSFT object created with RPSFT(). |
CFExposure |
Defines the counter factual exposure to study drug per patient. |
UseObserved |
TRUE/FALSE indicator per patient if Observed values should be used for a patient. |
1 2 3 4 5 6 7 8 | sim.df <- simStudy()
x <- SurvExt(Surv(os.t, os.e) ~ I(x.trt==1),
CFExposure = ifelse(x.trt == 1, os.t, ifelse(x.switch == 1, os.t - t.switch, 0)),
AdminCensTime = t.censor,
data = sim.df)
y <- RPSFT(x)
z <- SurvCF(y, CFExposure = ifelse(sim.df$x.trt == 0, 0, sim.df$os.t))
z <- SurvCF(y, CFExposure = 0, UseObserved = sim.df$x.trt == 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.