statsmodels.stats.oneway.power_equivalence_oneway

statsmodels.stats.oneway.power_equivalence_oneway(f2_alt, equiv_margin, nobs_t, n_groups=None, df=None, alpha=0.05, margin_type='f2')[source]

Power of oneway equivalence test

Parameters:
f2_altfloat

Effect size, squared Cohen’s f, under the alternative.

equiv_marginfloat

Equivalence margin in terms of effect size. Effect size can be chosen with margin_type. default is squared Cohen’s f.

nobs_tndarray

Total number of observations summed over all groups.

n_groupsint

Number of groups in oneway comparison. If margin_type is “wellek”, then either n_groups or df has to be given.

dftuple

Degrees of freedom for F distribution, df = (n_groups - 1, nobs_t - n_groups)

alphafloat in (0, 1)

Significance level for the hypothesis test.

margin_type“f2” or “wellek”

Type of effect size used for equivalence margin, either squared Cohen’s f or Wellek’s psi. Default is “f2”.

Returns:
pow_altfloat

Power of the equivalence test at given equivalence effect size under the alternative.


Last update: Oct 03, 2024