survAWKMT2-package {survAWKMT2} | R Documentation |
Two-Sample Tests Based on Weighted Differences of Kaplan-Meier Curves
Description
Tests for equality of two survival functions based on integrated weighted differences of two Kaplan-Meier curves.
Author(s)
Miki Horiguchi, Hajime Uno
References
Uno H, Tian L, Claggett B, Wei LJ. A versatile test for equality of two survival functions based on weighted differences of Kaplan-Meier curves. Statistics in Medicine 2015, 34, 3680-3695.
See Also
survival
Examples
D = survival::pbc[1:312, c(2,3,4)] #The pbc data from 'survival' package
D$status = as.numeric(D$status==2)
D$trt = as.numeric(D$trt==2)
names(D) = c("time", "status", "arm")
tau = max(D[D[,2]==1,1])
nmethod = 10 #Recommended to specify at least 10000 (default) or larger.
a = AWKMT2(indata=D, tau=tau, c_first=0, c_last=4, c_by=0.1, method="permutation",
nmethod=nmethod, seed=1, v1=TRUE, v2=TRUE, test="1_side")
print(a)
[Package survAWKMT2 version 1.0.1 Index]