statsmodels.stats.oneway._power_equivalence_oneway_emp

statsmodels.stats.oneway._power_equivalence_oneway_emp(f_stat, n_groups, nobs, eps, df, alpha=0.05)[source]

Empirical power of oneway equivalence test

This only returns post-hoc, empirical power.

Warning: eps is currently effect size margin as defined as in Wellek, and not the signal to noise ratio (Cohen’s f family).

Parameters:
f_statfloat

F-statistic from oneway anova, used to compute empirical effect size

n_groupsint

Number of groups in oneway comparison.

nobsndarray

Array of number of observations in groups.

epsfloat

Equivalence margin in terms of effect size given by Wellek’s psi.

dftuple

Degrees of freedom for F distribution.

alphafloat in (0, 1)

Significance level for the hypothesis test.

Returns:
powfloat

Ex-post, post-hoc or empirical power at f-statistic of the equivalence test.


Last update: Dec 14, 2023