This a helper function used to estimate the acceptance rate for a simple norm based test under a sequence of local alternatives in a given direction given the estimated limiting distribution.
accept_rate(mc_limit_dstr, dir, null_quants, norms_idx = 2, norm_type = "lp")
MC draws from an estimate of the (centered) limiting distribution. Data where columns correspond to different covariates, and rows are independent observations.
a vector in the direction for which we wish to estimate power.
the cutoff values for the distribution under the null for each lp norm.
the index of the norms to be used (ideally integers).
string indicating the class of norms to select over (sum of squares ("ssq") or lp norms ("lp") are currently supported).
The estimated acceptance rate for the specified norm-based test for a given local alternative.