Calculate the power of a F-test.
Parameters: | effect_size : float
df_num : int or float
df_denom : int or float
alpha : float in interval (0,1)
ncc : int
|
---|---|
Returns: | power : float
|
Notes
sample size is given implicitly by df_num
set ncc=0 to match t-test, or f-test in LikelihoodModelResults. ncc=1 matches the non-centrality parameter in R::pwr::pwr.f2.test
ftest_power with ncc=0 should also be correct for f_test in regression models, with df_num and d_denom as defined there. (not verified yet)