View source: R/gehan.wilcoxon.R
gehan.wilcoxon.test | R Documentation |
Perform Gehan's application to the Wilcoxon test for multiple samples, testing for equivalance of survival curve. See Klein and Moeschberger (1997) Survival Analysis (7.3.3) and pp. 193-194.
gehan.wilcoxon.test(
myformula,
data,
gehan = TRUE,
plot = FALSE,
alpha = 0.05,
subset = NULL
)
myformula |
Proportional hazards formula appropriate for survfit |
data |
the data set |
gehan |
logical flag triggering the Wilcoxon test (gehan=TRUE), with weights equal to total at risk, or the log rank test (gehan=FALSE) with weights all 1. |
plot |
logical flag triggering plotting. |
alpha |
Nominal test level for plotting on graph |
subset |
Apply to a subset of the data. |
An htest-like object with the chi-square version of the test.
data(breast)#From package coxphf
gehan.wilcoxon.test(Surv(TIME,CENS)~G,data=breast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.