sample_std_rerand is an internal function that draws from the non-Normal distribution under rerandomization; this is a mixture of a Normal and a truncated Normal.
sample_std_rerand(n, K, pa, R2)The number of draws.
The number of covariates.
The acceptance probability used for rerandomization.
The R-squared between covariates and potential outcomes.
Random draws from the non-Normal distribution under rerandomization.
Branson, Z., Li, X., and Ding, P. (2022). Power and Sample Size Calculations for Rerandomized Experiments.