simulation: Simulate a dataset which can be analyzed by SLTCA

Description Usage Arguments Value Author(s) Examples

View source: R/simulation.r

Description

Simulate a dataset with longitudinal observations.

Usage

1

Arguments

n

Sample size.

Value

Returns a data frame with 6 longitudinal features y.1 - y.6, including count (y.1 and y.2), binary (y.3 and y.4) and continuous (y.5 and y.6) type. Variable baselinecov is the baseline risk factor of latent classes. Variable latent is the true latent class labels.

Author(s)

Teng Fei. Email: tfei@emory.edu

Examples

1
dat <- simulation(500)

tengfei-emory/SLTCA documentation built on Oct. 5, 2020, 12:15 a.m.