rmst2perm.sample.data {survRM2perm}R Documentation

Sample Dataset from Ovarian Data

Description

Generates a sample dataset of 26 randomized patients from the ovarian data.

Usage

rmst2perm.sample.data(t.unit="month")

Arguments

t.unit

Specify the time unit. It supports "month" (default) and "day".

Details

The function creates a sample dataset to illustrate the usage of the function rmst2perm() in this package. This function loads the ovarian data from the survival package, deriving three variables. The variables in the dataset are as follows: time, survival time in months; status, event indicator (0=censor, 1=event); arm, treatment arm (0=cyclophosphamide, 1=cyclophosphamide+adriamycin).

Value

returns a data frame

References

Collett, D. Modelling Survival Data in Medical Research. Chapman and Hall/CRC. 2015; page 213.

Edmonson JH, Fleming TR, Decker DG, et al. Different chemotherapeutic sensitivities and host factors affecting prognosis in advanced ovarian carcinoma versus minimal residual disease. Cancer Treat Rep. 1979;63(2):241-247.

See Also

ovarian in survival package

Examples

D = rmst2perm.sample.data()
head(D)

[Package survRM2perm version 0.1.0 Index]