Calculates the confidence interval for the variance (standard deviation) of a sample (ChiSquare distribution).
ci_chisq(s, n, conf.level = 0.95, digits = 2)
s | Sample standard deviation |
---|---|
n | Sample size |
conf.level | Confidence level to use for the confidence interval (Default is 0.95) |
digits | Number of digits to round to (Default is 2) |
A tibble with the standard deviation and variance, degrees of freedom, and lower and upper ends of the confidence interval
s <- 0.535 n <- 10 ci_chisq(s, n)#> # A tibble: 2 × 5 #> stat value df lower upper #> <chr> <dbl> <dbl> <dbl> <dbl> #> 1 sd 0.54 9 0.37 0.98 #> 2 var 0.29 9 0.14 0.95