gehan.wilcoxon.test: Perform Gehan's application to the Wilcoxon test for multiple...

Description Usage Arguments Value Examples

View source: R/gehan.wilcoxon.R

Description

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.

Usage

1
gehan.wilcoxon.test(myformula, data, gehan = TRUE, plot = FALSE, alpha = 0.05)

Arguments

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

Value

An htest-like object with the chi-square version of the test.

Examples

1
2
data(breast)#From package coxphf
gehan.wilcoxon.test(Surv(TIME,CENS)~G,data=breast)

PHInfiniteEstimates documentation built on July 24, 2021, 1:07 a.m.