powered by
H0: margin is equal to 0 Ha: margin is not equal to 0
The test is finding whether there is a difference between the mean response of the test \(\bar{x}\) and the reference value \(\mu_0\)
OneSampleMean.Equality(alpha, beta, sigma, margin)
significance level
power = 1-beta
standard deviation
\(margin=\bar{x}-\mu_0\)
the difference between the true mean response of a test \(\bar{x}\) and a reference value \(\mu_0\)
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
# NOT RUN { OneSampleMean.Equality(0.05,0.2,1,0.5) # 32 # }
Run the code above in your browser using DataLab