Description Usage Arguments Details Value Author(s) References Examples
Estimate the tau-restricted mean survival across multiple follow-up intervals.
1 |
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") |
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.
A list
object which contains
Mean - vector containing sample estimates of overall tau-restricted mean survival in each group
Var - vector containing empirical variance of estimates of overall tau-restricted mean survival in each group
test_stat - test statistic of two-sample test
test_stat_p - p-value of two-sample test
Nabihah Tayob
Tayob, N. and Murray, S., 2016. Nonparametric restricted mean analysis across multiple follow-up intervals. Statistics & probability letters, 109, pp.152-158.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.