survprob: Estimate Survival Probabilities

Description Usage Arguments Value See Also Examples

View source: R/estimator.R

Description

Estimate Survival Probabilities

Usage

1
survprob(metadata, horizon = NULL)

Arguments

metadata

An object of class "Survival" generated by a call to survrct().

horizon

The time horizon to evaluate at. If NULL, computes survival probabilities at all time points.

Value

A list of class survprob containing the computed estimates for each time horizon including the efficient influence function, standard errors, and confidence intervals.

See Also

survrct for creating metadata.

Other survrct functions: rmst(), survrct()

Examples

1
2
3
surv <- survrct(Surv(days, event) ~ A + age + sex + dyspnea + bmi,
                A ~ 1, data = c19.tte)
survprob(surv, 14)

nt-williams/survrct documentation built on July 29, 2021, 7:46 a.m.