rmstaug {surv2sampleComp}R Documentation

Adjusted difference/ratio of restricted mean survival times

Description

Compares restricted mean survival time between two groups, adjusting for imbalance of baseline factors.

Usage

rmstaug(y, delta, x, arm, tau, type="difference", conf.int=0.95)

Arguments

y

The follow-up time.

delta

The censoring indicator, 1=event, and 0=censoring.

x

The covariate matrix. The group indicator, arm (below) should not be included in this matrix.

arm

The group indicator, 1/0.

tau

The value indicates the restricted time point on the follow-up time to calculate the restricted mean survival time.

type

The type of the between-group contrast measure: "difference"(default), "ratio" or "lossratio".

conf.int

The level for computation of the confidence intervals. The default is 0.95.

Author(s)

Lu Tian

References

Tian L, Zhao L, Wei LJ. Predicting the restricted mean event time with the subject's baseline covariates in survival analysis. Biostatistics 2014, 15, 222-233.

Examples

D=pbc.sample()
rmstaug(D$time, D$status, D$covariates, D$group, tau=8, type="difference")

[Package surv2sampleComp version 1.0-5 Index]