Faux
An R package for data simulation from summary statistics
Abstract
Being able to simulate data allows you to prep analysis scripts for pre-registration, calculate power and sensitivity for analyses that don’t have empirical methods, create reproducible examples when your data are too big or confidential to share, enhance your understanding of statistical concepts, and create demo data for teaching and tutorials. In this paper, I will introduce the basics of simulation using the R package {faux} to simulate data from summary statistics. Two conrete examples are presented. First, a fixed 2x2 within-between design demonstrating how to do a power analysis for designs that do not have empirical solutions. Second, simulating data from a mixed design where trials are crossed with subjects in order to understand how the simulation parameters correspond to the output.