This function is vectorized.

confIntSD(x, n = NULL, conf.level = 0.95)

Arguments

x

Either a standard deviation, in which case n must also be provided, or a vector, in which case n must be NULL.

n

The sample size is x is a standard deviation.

conf.level

The confidence level

Value

A vector or matrix.

Examples

ufs::confIntSD(mtcars$mpg);
#> sd.ci.lo sd.ci.hi 
#> 4.831825 8.012704 
ufs::confIntSD(c(6, 7), c(32, 32));
#>            sd.ci.lo sd.ci.hi
#> sd=6, n=32 4.810220 7.976877
#> sd=7, n=32 5.611924 9.306357