mu.freq: Frequentist sample size determination for normal means

mu.freqR Documentation

Frequentist sample size determination for normal means

Description

The function mu.freq returns the required sample size to obtain a confidence interval of given length and confidence level for a normal mean.

Usage

mu.freq(len, lambda, level = 0.95)

Arguments

len

The desired total length of the confidence interval for the mean

lambda

Known precision (reciprocal of variance)

level

The desired confidence level (e.g., 0.95)

Details

Assume that a random sample will be collected in order to estimate the mean of a normally distributed random variable with known precision lambda (precision is the reciprocal of the variance). The function mu.freq returns the required sample size to attain the desired length len and confidence level level for a confidence interval for the mean from a frequentist point of view.

Value

The required sample size given the inputs to the function.

Note

The sample size returned by this function is exact.

Author(s)

Lawrence Joseph lawrence.joseph@mcgill.ca and Patrick Bélisle

References

Lemeshow S, Hosmer Jr DW, Klar J, Lwanga SK.
Adequacy of Sample Size in Health Studies. Wiley and Sons, New York, 1990.

Joseph L, Bélisle P.
Bayesian sample size determination for Normal means and differences between Normal means
The Statistician 1997;46(2):209-226.

See Also

mu.acc, mu.alc, mu.modwoc, mu.varknown, mu.mblacc, mu.mblalc, mu.mblmodwoc, mu.mbl.varknown, mudiff.freq, mudiff.acc, mudiff.alc, mudiff.modwoc, mudiff.acc.equalvar, mudiff.alc.equalvar, mudiff.modwoc.equalvar, mudiff.varknown, mudiff.mblacc, mudiff.mblalc, mudiff.mblmodwoc, mudiff.mblacc.equalvar, mudiff.mblalc.equalvar, mudiff.mblmodwoc.equalvar, mudiff.mbl.varknown

Examples

#  Suppose the variance = 4
mu.freq(len=0.2, lambda=1/4)

SampleSizeMeans documentation built on Aug. 23, 2023, 1:09 a.m.