
Functions and commands 159
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)
Kommentare zu diesen Handbüchern