Power Function of a Z test
Function: calc[ZtestPower] - power function of a Z test
Calling Sequence:
ZtestPower
Parameters:
Side - Left, Right, LR. Specifies an appropriate alternative hypothesis, one-sided: Left or Right, two-sided: LR.
- null hypothesis.
- standard deviation of the distribution.
- sample mean.
n - sample size.
- significance level.
- make a choice of
and the corresponding power ![]()
![]()
(
),
where
is the probability of Type II error , then
N - returns the sample size necessary to give the selected power
(
).
Description:
Examples:
| > | restart: with(calc): |
| > | ZtestPower(LR,73,7,78.5,10,0.05,N,78,.80); |
![]() |