TM2: Tau-Restricted Mean Survival

Description Usage Arguments Details Value Author(s) References Examples

View source: R/TM2.R

Description

Estimate the tau-restricted mean survival across multiple follow-up intervals.

Usage

1
TM2(X, delta, Tau, t, var_output = "proposed")

Arguments

X

follow-up time of right censored data (values must be geq 0)

delta

status indicator, 0=alive, 1=dead. (values must be 0,1)

Tau

upper limit of integration (cannot be greater than largest follow-up time, cannot be negative)

t

start times of follow-up windows (default=seq(from=0, to=A-Tau,by=(A-Tau)/(b-1)), must be of length b if both specified, largest value cannot be greater than A-Tau, no repeats)

var_output

Type of variance estimator. Options are c("proposed","independence", "sandwich","all")

Details

Estimate the tau-restricted mean survival as described in Tayob, N. and Murray, S., 2016. Nonparametric restricted mean analysis across multiple follow-up intervals. Statistics & probability letters, 109, pp.152-158.

Value

A list object which contains

Author(s)

Nabihah Tayob

References

Tayob, N. and Murray, S., 2016. Nonparametric restricted mean analysis across multiple follow-up intervals. Statistics & probability letters, 109, pp.152-158.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
data("TM2data")

output = TM2(X = TM2data$X, delta = TM2data$delta, Tau = 12, 
             t = seq(from = 0, to = 24, by = 6), var_output = "all")
summary(output)
plot(output)

output = TM2(X = TM2data$X, delta = TM2data$delta, Tau = 12, 
             t = seq(from = 0, to = 24, by = 6))
summary(output)
plot(output)

output = TM2(X = TM2data$X, delta = TM2data$delta, Tau = 12, 
             t = seq(from = 0, to = 24, by = 6), var_output = "independence")
summary(output)
plot(output)

output = TM2(X = TM2data$X, delta = TM2data$delta, Tau = 12, 
             t = seq(from = 0, to = 24, by = 6), var_output = "sandwich")
summary(output)
plot(output)

umich-biostatistics/corrsurv documentation built on Jan. 11, 2020, 2:03 a.m.