Learn R Programming

exactRankTests (version 0.8-35)

ocarcinoma: Ovarian Carcinoma

Description

Survival times of 35 women suffering ovarian carcinoma at stadium II and IIA.

Usage

data(ocarcinoma)

Arguments

Format

A data frame with 35 observations on the following 3 variables.

time

time in days.

cens

censoring indicator: 0 censored, 1 event.

stadium

a factor with levels II and IIA.

Details

Data from Fleming et al. (1980, 1984), reanalysed in Schumacher and Schulgen (2002).

References

Martin Schumacher & Gabi Schulgen (2002), Methodik klinischer Studien: methodische Grundlagen der Planung, Durchf\"uhrung und Auswertung. Springer, Heidelberg.

Examples

Run this code
# NOT RUN {
data(ocarcinoma)
attach(ocarcinoma)
# compute integer valued logrank scores
logrsc <- cscores.Surv(cbind(time, cens), int=TRUE)
# the test statistic
lgT <- sum(logrsc[stadium == "II"])
# p-value
round(pperm(lgT, logrsc, m=sum(stadium=="II"), al="tw"), 4)

# compute logrank scores and simulate p-value
logrsc <- cscores.Surv(cbind(time, cens), int=FALSE)
# the test statistic
lgT <- sum(logrsc[stadium == "II"])
# p-value
round(pperm(lgT, logrsc, m=sum(stadium=="II"), al="tw", simulate=TRUE), 4)

# }

Run the code above in your browser using DataLab