Generate a sample data from the pbc data
rmst2adapt.sample.data.Rd
This is a function to retrieve 312 randomized patients from the pbc data in survival package.
Details
The function creates a sample dataset to illustrate the usage of the function rmst2adapt()
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.
Examples
D=rmst2adapt.sample.data()
head(D)
#> time status arm
#> 1 1.095140 1 1
#> 2 12.320329 0 1
#> 3 2.770705 1 1
#> 4 5.270363 1 1
#> 5 4.117728 0 0
#> 6 6.852841 1 0