368 Functions and commands
Mode: Specifies which alternative hypothesis to use:
• 1: <
0
• 2: >
0
• 3: ≠
0
Example:
HypZ1prop(21, 50, 0.5, 0.05,1) returns {1,
-1.1313…, 0.42, 0.8710…, 1.6448…, 0.6148…}
HypZ2prop The two-sample Z-test for proportions. Returns a list containing
(in order):
• 0 or 1 to reject or fail to reject the null hypothesis
• The test Z-value
• The test value
• The upper-tail probability
• The upper critical Z-value associated with the input α-level
• The critical value of associated with the critical Z-value
HypZ2prop(x
1
,x
2
,n
1
,n
2
,mode)
Mode: Specifies which alternative hypothesis to use:
• 1:
1
<
2
• 2:
1
>
2
• 3:
1
≠
2
Example:
HypZ2prop(21, 26, 50, 50, 0.05, 1) returns {1,
-1.0018…, -0.1, 0.8417…, 1.6448…, 0.0633…}
HypT1mean The one-sample t-test for a mean. Returns a list containing (in
order):
• 0 or 1 to reject or fail to reject the null hypothesis
• The test T-value
• The input value
• The upper-tail probability
• The degrees of freedom
• The upper critical T-value associated with the input α-level
• The critical value of the statistic associated with the
critical t-value
HypT1mean( ,s,n,
0
,mode)
x
x