The function mu.freq
returns the required sample size
to obtain a confidence interval of given length and confidence level for a normal mean.
mu.freq(len, lambda, level = 0.95)
The required sample size given the inputs to the function.
The desired total length of the confidence interval for the mean
Known precision (reciprocal of variance)
The desired confidence level (e.g., 0.95)
Lawrence Joseph lawrence.joseph@mcgill.ca and Patrick Bélisle
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.
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.
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
# Suppose the variance = 4
mu.freq(len=0.2, lambda=1/4)
Run the code above in your browser using DataLab