You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: power_equivalence_poisson_2indep and power_equivalence_neginb_2indep wrong for nobs_ratio != 1 #10519
power_equivalence_poisson_2indep and power_equivalence_neginb_2indep in statsmodels/stats/rates.py return wrong power values whenever nobs_ratio != 1 (and, for the negative binomial version, rate1 != rate2). All three bugs are invisible at nobs_ratio = 1, which is why the current test suite does not catch them — the existing tests only use equal sample sizes.
Bug 1 — power_equivalence_poisson_2indep passes nobs2 where the formula requires nobs1.
The standard errors are defined per-nobs1 (the same v1 definition as power_poisson_ratio_2indep, which correctly calls normal_power_het(es, nobs1, ...)), but the function calls
Activity
BUG: Fix the ftotal null variance and validate nobs_ratio in negbin p…