| mockstudy {arsenal} | R Documentation |
Mock study data for examples
Description
Mock clinical study data for examples to test data manipulation and statistical functions.
The function muck_up_mockstudy() is used in examples for comparedf.
Usage
mockstudy
muck_up_mockstudy()
Format
A data frame with 1499 observations on the following 15 variables:
casea numeric identifier-patient ID
ageage in years
armtreatment arm divided into 3 groups, character string
sexa factor with levels
MaleFemaleraceself-reported race/ethnicity, character string
fu.timesurvival or censoring time in years
fu.statcensoring status; 1=censor, 2=death
psinteger, ECOG performance score
hgbnumeric, hemoglobin count
bminumeric, body mass index, kg/m^2
alk.phosnumeric, alkaline phosphatase
astnumeric, aspartate transaminase
mdquality.sinteger, LASA QOL 0=Clinically Deficient, 1=Not Clinically Deficient
age.ordan ordered factor split of age, with levels
10-19<20-29<30-39<40-49<50-59<60-69<70-79<80-89
An object of class data.frame with 1499 rows and 14 columns.
Examples
data(mockstudy)
str(mockstudy)