View source: R/normalinference.R
normal_inference_confint | R Documentation |
Given a set of values assumed to sampled independently from a normal distribution, calculate the confidence interval of the distribution's mean.
normal_inference_confint(y, level = 0.95, sigma = NULL, na.rm = T)
y |
(numeric) A set of values assumed to be drawn independently from a normal distribution. |
level |
(numeric) The level of the confidence interval. |
sigma |
(numeric) If not NULL, the assumed value of the standard deviation |
na.rm |
(logical) When calculating the sufficient statistics, do we remove NA's |
The standard deviation of the normal distribution can assumed to be known to have the value of the sample standard deviation. If so, the confidence interval is calculated assuming a normal sampling distribution.
If the standard deviation is not assumed to be known, the confidence interval is calculated using the t-distribution.
(numeric) The lower and upper bounds of the confidence interval
y <- rnorm(10, mean = 5) normal_inference_confint(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.