Description Usage Arguments Value Examples
Return confidence intervals of a variable
1 2 3 4 5 6 7 |
x |
A vector |
level |
Confidence level |
na.rm |
Logical. Should missing values be removed? |
df |
Degrees of freedom. By default this is |
A length-two vector giving a confidence interval.
If x
is numeric, the confidence interval around the mean is calculated using the t distribution.
If x
is logical, or a factor with two levels, the binomial confidence interval is calculated for the
proportion of TRUE
cases, or cases on the first level, using prop.test
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.