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

Usage

1
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

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

Example output

                   coef     se(coef)           z            p   lower 0.95
intercept  2.6905643719 1.4733790060  1.82611830 0.0678324436 -0.197205415
           0.0084165949 0.2602358592  0.03234218 0.9741991724 -0.501636317
edema     -1.7797656406 0.9925664762 -1.79309465 0.0729577906 -3.725160186
bili      -0.1630732547 0.0420232855 -3.88054511 0.0001042226 -0.245437381
chol      -0.0006939487 0.0005268023 -1.31728490 0.1877431437 -0.001726462
albumin    1.4338384926 0.3916587331  3.66093839 0.0002512932  0.666201481
copper    -0.0067731962 0.0017895288 -3.78490485 0.0001537674 -0.010280608
             upper 0.95
intercept  5.5783341593
           0.5184695063
edema      0.1656289050
bili      -0.0807091287
chol       0.0003385648
albumin    2.2014755037
copper    -0.0032657842

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