simstudy: Illuminating research methods through data generation
Keith S. Goldfeld, Jacob Wujciak-Jens · The Journal of Open Source Software · 2020
The simstudy package is a collection of functions for R (R Core Team, 2020) that allow users to generate simulated data sets in order to explore modeling techniques or better understand data generating processes.The user defines the distributions of individual variables, specifies relationships between covariates and outcomes, and generates data based on these specifications.The final data sets can represent randomized control trials, repeated measure designs, cluster-randomized trials, or naturally observed data processes.Many other complexities can be added, including survival data, correlated data, factorial study designs, step wedge designs, and missing data processes.