CI for case where variance of population is unknown.

normal_var_CI(x = NULL, var = var(x), n = length(x), conf.level = 0.95)

Arguments

x

data

var

variance

n

number of samples

conf.level

confidence level, number between 0 and 1, usually 0.95.

Value

List with results... ???

See also

Other statistical functions: median_CI(), poisson_lambda_CI(), quartiles()

Examples


library(spHelper)

x <- c(3,0,2,1,0,4,3,2,1,2)
normal_var_CI(x)
#> Error in normal_var_CI(x): promise already under evaluation: recursive default argument reference or earlier problems?

normal_var_CI(var = 10, n = 20)
#> $model
#> [1] "CI for parameter sigma squared of Normal distribution"
#> 
#> $parameter
#> [1] "Variance"
#> 
#> $values
#>   CI_lower Variance CI_upper
#> 1 5.783456       10  21.3327
#> 
#> $data
#> NULL
#> 
#> attr(,"class")
#> [1] "CI_model" "list"