Description Usage Arguments Details Value Note Author(s) References See Also Examples

The function `mu.freq`

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

1 | ```
mu.freq(len, lambda, level = 0.95)
``` |

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

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.

The required sample size given the inputs to the function.

The sample size returned by this function is exact.

Lawrence Joseph [email protected] and Patrick Belisle

Lemeshow S, Hosmer Jr DW, Klar J, Lwanga SK.

Adequacy of Sample Size in Health Studies. Wiley and Sons, New York, 1990.

Joseph L, Belisle 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`

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.