Description Usage Arguments Details Value References See Also Examples
View source: R/rmst2perm.sample.data.R
Generates a sample dataset of 26 randomized patients from the ovarian data.
1 | rmst2perm.sample.data(t.unit="month")
|
t.unit |
Specify the time unit. It supports |
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).
returns a data frame
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.
ovarian
in survival package
1 2 | D = rmst2perm.sample.data()
head(D)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.