rmst: Estimate Restricted Mean Survival Time

Description Usage Arguments Value See Also Examples

View source: R/estimator.R

Description

Estimate Restricted Mean Survival Time

Usage

1
rmst(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 RMST at all possible time horizons.

Value

A list of class rmst 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: survprob(), survrct()

Examples

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

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