generate_datasets: Generate Datasets for ANOVA Simulation
Description
This function generates a specified number of datasets for use in ANOVA
simulations.Each dataset is generated based on a specified number of groups,
effect size, and sample size per group. The data generation follows the model:
yi = mu1xi1 + ... + mukxik + ei, as described in Vanbrabant, Van De Schoot,
and Rosseel (2015).
Usage
generate_datasets(S, k, f, n)
Value
A list of data frames, each representing a dataset. Each data frame
contains two columns: 'x', indicating group membership, and 'y', representing
the dependent variable generated according to the model.
Vanbrabant, Leonard; Van De Schoot, Rens; Rosseel, Yves (2015). Constrained
statistical inference: sample-size tables for ANOVA and regression. Frontiers
in Psychology, 5. DOI:10.3389/fpsyg.2014.01565.
URL: https://www.frontiersin.org/articles/10.3389/fpsyg.2014.01565