
Command: TwoPropZTest
Description: This command compares the proportion of successes for two populations. A 
| 
 | 
 | 
 | x1 | – | x2 | 
 | 
 | 
 | 
 | x1 | : data value of sample 1 | |
| Z = | 
 | 
 | n1 | n2 | 
 | 
 | 
 | 
 | x2 | : data value of sample 2 | ||
| 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | |||||
| 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | n1 | : size of sample 1 | |
| 
 | 
 | p(1– p ) | 
 | 1 | + | 1 | 
 | |||||
| 
 | 
 | 
 | 
 | n2 | : size of sample 2 | |||||||
| 
 | 
 | 
 | n1 | n2 | 
 | |||||||
| 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | ˆp | : estimated sample proportion | 
Command Syntax
“p1 condition”, x1 value, n1 value, x2 value, n2 value
Definition of Terms
p1 condition : sample proportion test conditions (“≠” specifies 
x1 :data value (integer, x1 >0) of sample 1
n1 :size of sample 1 (positive integer)
x2 :data value (integer, x2 >0) of sample 2
n2 :size of sample 2 (positive integer)
Input Example:
TwoPropZTest “>”,15,20,25,30
Calculation Result Output
| p1>p2 : | test condition | |
| z : | 
 | z value | 
| p : | 
 | |
| pˆ1 | : | estimated proportion of sample 1 | 
| pˆ2 | : | estimated proportion of sample 2 | 
| pˆ | : | estimated sample proportion | 
| n1 | : | size of sample 1 | 
| n2 | : | size of sample 2 | 
20021201