Created
November 24, 2018 20:20
-
-
Save erykml/22c9da42b650e3763b0001430a3490d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# parameters for the analysis | |
effect_size = 0.8 | |
alpha = 0.05 # significance level | |
power = 0.8 | |
power_analysis = TTestIndPower() | |
sample_size = power_analysis.solve_power(effect_size = effect_size, | |
power = power, | |
alpha = alpha) | |
print('Required sample size: {0:.2f}'.format(sample_size)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment