Advanced simulation framework for test validation
Source:R/simulation_framework.R
simulation_framework.RdProvides tools for validating heteroscedasticity tests under controlled scenarios and estimating statistical power.
Arguments
- test_function
Function taking a model and data and returning an object with a numeric
p.valuecomponent.- n_sims
Number of simulation replications.
- alpha
Significance level for Type I error or power calculations.
- n_obs
Number of observations for generated datasets.
- seed
Optional integer seed for reproducibility.
- sigma_functions
List of variance functions generating heteroscedastic patterns.
- effect_sizes
Numeric vector of effect size multipliers.