A helper function for the STEPP analysis in case of a surival response: if a treatment is given a Cox model is used with optional covariates. If no treatment is given a survival rate (or more precisely the survival probability) is estimated using the Kaplan-Meier estimate at a given timepoint
1 | STEPPSurvModel(response, treat, covars = NULL, data, timepoint = 60, alpha)
|
response |
the response, must be a Surv object |
treat |
the name of the treatment variable in the data |
covars |
optinal names of covariates |
data |
the data frame used for evalution |
the |
timepoint for evaluating the KM estimate, only used if no treatment is given |
alpha |
the alpha level used for confidence intervals |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.