ci_sd | R Documentation |
This function calculates confidence intervals for the population standard deviation. They are derived by calculating confidence intervals for the variance and then taking the square-root. For details, see ci_var
.
ci_sd( x, probs = c(0.025, 0.975), type = c("chi-squared", "bootstrap"), boot_type = c("bca", "perc", "stud", "norm", "basic"), R = 9999, seed = NULL, ... )
x |
A numeric vector. |
probs |
Error probabilites. The default c(0.025, 0.975) gives a symmetric 95% confidence interval. |
type |
Type of confidence interval. One of "chi-squared" (default) or "bootstrap". |
boot_type |
Type of bootstrap confidence interval ("bca", "perc", "stud", "norm", "basic"). Only used for |
R |
The number of bootstrap resamples. Only used for |
seed |
An integer random seed. Only used for |
... |
Further arguments passed to |
A list with class cint
containing these components:
parameter
: The parameter in question.
interval
: The confidence interval for the parameter.
estimate
: The estimate for the parameter.
probs
: A vector of error probabilities.
type
: The type of the interval.
info
: An additional description text for the interval.
ci_var
.
x <- 1:100 sd(x) ci_sd(x) sqrt(ci_var(x)$interval) ci_sd(x, type = "bootstrap", R = 999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.