samplesize.h determines the sample size, when specified the effect size to be detected, desired statistical power, and significance level.
samplesize.h always specifies two-sided test.
a numeric contains the effect size (Cohen's h) to be detected
a numeric contains the desired statistical power (default 0.80)
a numeric contains the significance level (default 0.05)
Return a numeric containing the appropriate sample size in each group.
Department of Social Psychiatry,
National Institute of Mental Health,
National Center of Neurology and Psychiatry
Cohen J (1988). Statistical power analysis for the behavioral sciences (2nd ed). Hillsdale, NJ: Erlbaum.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.