mag_for_pow: This function is used to estimate the magnitude needed for a...

Description Usage Arguments Value

View source: R/mag_for_pow.R

Description

This function is used to estimate the magnitude needed for a certain direction to achieve 80% power for a proposed alternative.

Usage

1
mag_for_pow(mc_limit_dstr, dir, norms_idx = 2, null_quants, norm_type = "lp")

Arguments

mc_limit_dstr

MC draws from the estimated (centered) limiting distribution. Columns correspond to different covariates, and rows are independent observations.

dir

the direction for which we wish to find the magnitude needed to achieve 80% power.

norms_idx

the norms to be considered.

null_quants

ninety five percent quantiles for each of the different norms

norm_type

the class of norms to be used

Value

Magnitude for the specified lp norm for a given local alternative.


adam-s-elder/amar documentation built on Feb. 5, 2022, 7:10 a.m.