The two sample test of proportions based on the normal approximation is a method commonly taught in introductory statistics tests.
1 2 3 |
delta |
The difference to be observed between the proportions of two groups. This may also be interpreted as the difference under the alternative hypothesis. |
n |
The total sample size between the two groups. Unequal sample sizes
may be accommodated using the |
pbar |
Theh average proportion. |
alpha |
The significance level for the test. |
power |
The power of the test. |
delta0 |
The difference of proportions under the null hypothesis. Typically, this is set to 0 (equal proportions), but can be altered if desired. |
weights |
A list of weights for the two sample sizes. |
two_tail |
Will this be a two tailed test? A vector may be given. |
p1_null,p2_null |
The proportions of p1 and p2 under the null hypothesis.
If both of these values are given, their difference will replace the
default value of |
p1_alt,p2_alt |
The proportions of p1 and p2 under the alternative
hypothesis. If these are both provided and |
x1,x2,n1,n2 |
Values of the frequencies and samples sizes from
preliminary data to be used to calculate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.