rmstreg {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 via a regression model.

Usage

rmstreg(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 first colomn of this matrix should be the group indicator, arm (below).

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()
x=cbind(D$group, D$covariates)
rmstreg(D$time, D$status, x, D$group, tau=8, type="difference")

[Package surv2sampleComp version 1.0-5 Index]