mag_for_pow {amp}R Documentation

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

Description

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

Usage

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.


[Package amp version 1.0.0 Index]