This function is used to estimate the magnitude needed for a certain direction to achieve 80% power for a proposed alternative.
mag_for_pow(mc_limit_dstr, dir, norms_idx = 2, null_quants, norm_type = "lp")
MC draws from the estimated (centered) limiting distribution. Columns correspond to different covariates, and rows are independent observations.
the direction for which we wish to find the magnitude needed to achieve 80% power.
the norms to be considered.
ninety five percent quantiles for each of the different norms
the class of norms to be used
Magnitude for the specified lp norm for a given local alternative.