calculate_c | R Documentation |
This function replicates the function in Mukhopadhyay \& de Silva (chapter 6, section 2) for the exact sample size given the variance, significance level, and confidence interval width for a fixed width confidence interval for the population mean of normal random variables.
calculate_c(var, alpha, d)
var |
The population variance. |
alpha |
The chosen Type I error rate (complement of the confidence coefficient). |
d |
Half of the confidence interval width. That is the confidence interval is 2d wide. |
The optimal sample size $C$, the “optimal fixed sample size required."
Mukhopadhyay, N., \& de Silva, B. M. (2009). Sequential Methods and Their Applications. New York: CRC Press.
calculate_c(var = 1, alpha = 0.05, d = 0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.