conf_int | R Documentation |
Calculate the confidence interval of a given sample mean.
conf_int(x, ci = 0.95, r = NA, s = NA, se = NA, n = NA)
x |
A sample mean |
ci |
Numeric, confidence level (default = 0.95) |
r |
Numeric, correlation coefficient (default = NA) |
s |
Numeric, standard deviation of population (default = NA) |
se |
Numeric, standard error of the sample mean (default = s * sqrt(1 - r)) |
n |
Numeric, sample size (default = NA) |
A list containing confidence intervals from Z and t methods.
conf_int(x = 12, ci = 0.99, s = 2.5, n = 24)
conf_int(x = 12, s = 2.5, r = 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.