predict.mult_stage_survfit | R Documentation |
Predict and fitted method for mult_stage_survfit
## S3 method for class 'mult_stage_survfit'
predict(
object,
newdata = object$covariate.data,
pred.prob.trunc = c(0, 1),
conf.level = 0.95,
...
)
## S3 method for class 'mult_stage_survfit'
fitted(object, pred.prob.trunc = c(0, 1), ...)
object |
a " |
newdata |
new data frame of covariates used for prediction. Default is the |
pred.prob.trunc |
values at which to truncate predicted survival probabilities from each model in |
conf.level |
confidence level for confidence interval when using the SDR estimator to estimate a scalar estimand (rather than a function), i.e. a survival probability unconditional on covariates and possibly conditional on survival up to a visit time. Ignored otherwise. Default is 0.95. |
... |
further arguments passed to |
a vector of predicted (conditional) survival probabilities. If no covariates are used, that is, interested in the survival probability marginalized over all covariates so that all individuals have the same prediction, then only outputs that one predicted survial probability.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.