Learn R Programming

TrialSize (version 1.4)

OneSampleMean.Equality: One Sample Mean Test for Equality

Description

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\)

Usage

OneSampleMean.Equality(alpha, beta, sigma, margin)

Arguments

alpha

significance level

beta

power = 1-beta

sigma

standard deviation

margin

\(margin=\bar{x}-\mu_0\)

the difference between the true mean response of a test \(\bar{x}\) and a reference value \(\mu_0\)

References

Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003

Examples

Run this code
# NOT RUN {
OneSampleMean.Equality(0.05,0.2,1,0.5)
# 32
# }

Run the code above in your browser using DataLab