View source: R/rmst2.sample.data.R
rmst2.sample.data | R Documentation |
This is a function to retrieve 312 randomized patients from the pbc data.
rmst2.sample.data(t.unit="year")
t.unit |
Specify the time unit. It supports "year" (default), "month", and "day". |
The function creates a sample dataset to illustrate the usage of the function rmst2()
in this package.
The original pbc data in survival
package consists of 418 patients data.
This function loads the pbc data, select the 312 patients who were randomized.
The status variable is edited, so that 1 indicates death and 0 indicates alive.
returns a data frame
pbc
in survival package
D=rmst2.sample.data() head(D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.