rmstaug: Adjusted difference/ratio of restricted mean survival times

Description Usage Arguments Author(s) References Examples

View source: R/surv2sample-ver003.R

Description

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

Usage

1
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

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

Example output

$result.ini
               coef  se(coef)          z         p lower 0.95 upper 0.95
intercept 6.1111255 0.2215825 27.5794600 0.0000000  5.6768318  6.5454192
arm       0.1894029 0.3157595  0.5998326 0.5486178 -0.4294744  0.8082802

$result.aug
               coef  se(coef)          z         p lower 0.95 upper 0.95
intercept 6.1981204 0.1933750 32.0523381 0.0000000  5.8191124  6.5771284
arm       0.1857071 0.2392827  0.7760991 0.4376905 -0.2832783  0.6546925

surv2sampleComp documentation built on May 2, 2019, 12:39 a.m.