statsmodels.stats.power.TTestPower.solve_power
TTestPower.solve_power(effect_size=None, nobs=None, alpha=None, power=None, alternative='two-sided') [source]
solve for any one parameter of the power of a one sample t-test for the one sample t-test the keywords are: effect_size, nobs, alpha, power Exactly one needs to be None, all others need numeric values. This test can also be used for a paired t-test, where effect size is defined in terms of the mean difference, and nobs is the number of p