Calculates the confidence interval for the ratio of the variance (standard deviation) of 2 samples (F distribution).

ci_F(s1, n1, s2, n2, conf.level = 0.95, digits = 2)

Arguments

s1

Sample's 1 standard deviation

n1

Sample size of sample 1

s2

Sample's 2 standard deviation

n2

Sample size of sample 2

conf.level

Confidence level to use for the confidence interval (Default is 0.95)

digits

Number of digits to round to (Default is 2)

Value

A tibble with the ratio of standard deviations and variances, degrees of freedom for both samples, and lower and upper ends of the confidence interval

Examples

s1 <- 3.1 n1 <- 15 s2 <- 0.8 n2 <- 12 ci_F(s1, n1, s2, n2)
#> # A tibble: 2 × 6 #> stat ratio df1 df2 lower upper #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 sd 3.88 14 11 2.11 6.82 #> 2 var 15.0 14 11 4.47 46.5