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

View source: R/gehan.wilcoxon.R

gehan.wilcoxon.testR 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.

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

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

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

subset

Apply to a subset of the data.

Value

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

Examples

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

PHInfiniteEstimates documentation built on Nov. 24, 2023, 9:06 a.m.