Replicates the Monte Carlo study of Espinheira et al. (2026), computing empirical rejection rates of the bootstrap \(U_n\) test under correct specification (size) or misspecification (power).
Arguments
- n
Sample size.
- beta
Numeric vector of mean-model coefficients.
- sigma2
Dispersion parameter (constant model).
- R
Number of Monte Carlo replications.
- B
Number of bootstrap replicates per replication.
- alpha
Significance levels.
- mu_range
One of
"low","mid","high"; used to select the covariate configuration that places fitted means near 0, near 0.5, or near 1.- ncores
Number of parallel workers for the outer MC loop. Default 1.
- seed
Random seed. Default
NULL.
