gehan.test | R Documentation |
Generalization of the Wilcoxon rank sum which allows for censored data.
gehan.test(time, event, trt)
time |
Time of event or of censoring |
event |
Indicator variable representing a event occur or not (time is censored) |
trt |
Variable indicating treatment group. |
statistic |
Value of the test statistic |
p.value |
p-value |
John Kloke
Higgins (2004), Introduction to Modern Nonparametric Statistics, Pacific Grove, CA:Brooks/Cole–Thomson Learning
n<-76
y<-rexp(n)
event<-rbinom(n,1,0.7) # about 30% censored
trt<-sample(c(0,1),n,replace=TRUE)
gehan.test(y,event,trt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.