Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mockstudy

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:

case

a numeric identifier-patient ID

age

age in years

arm

treatment arm divided into 3 groups, character string

sex

a factor with levels Male Female

race

self-reported race/ethnicity, character string

fu.time

survival or censoring time in years

fu.stat

censoring status; 1=censor, 2=death

ps

integer, ECOG performance score

hgb

numeric, hemoglobin count

bmi

numeric, body mass index, kg/m^2

alk.phos

numeric, alkaline phosphatase

ast

numeric, aspartate transaminase

mdquality.s

integer, LASA QOL 0=Clinically Deficient, 1=Not Clinically Deficient

age.ord

an 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)

arsenal

An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

v3.6.2
GPL (>= 2)
Authors
Ethan Heinzen [aut, cre], Jason Sinnwell [aut], Elizabeth Atkinson [aut], Tina Gunderson [aut], Gregory Dougherty [aut], Patrick Votruba [ctb], Ryan Lennon [ctb], Andrew Hanson [ctb], Krista Goergen [ctb], Emily Lundt [ctb], Brendan Broderick [ctb], Maddie McCullough [art]
Initial release
2021-02-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.