msc_sample_data: Make MSC sample data set

Description Usage Arguments Value Examples

View source: R/msc_sample_data.R

Description

Creates a sample data set to test out the mscpredmodel package. As the dataset is randomly generated, and it may be desired to make other sample datasets (for example, with more missing observations, or different characteristics), the code given here could be adapted to other situations.

Usage

1
msc_sample_data(n.cohorts = 15)

Arguments

n.cohorts

Number of cohorts in the data set (default 30)

Value

A sample data set (data.frame)

Examples

1
dat <- msc_sample_data(n.cohorts = 30)

srhaile/mscpredmodel documentation built on Sept. 13, 2019, 3:44 p.m.