....Confidence interval for median

quartiles(
  x = NULL,
  MEDIAN = median(x),
  Q1 = quantile(x, 0.25),
  Q3 = quantile(x, 0.75)
)

Arguments

x

data

Value

List with results... ???

Details

....CI for case where variance of population is unknown.

See also

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

Examples


library(spHelper)

x <- c(3,0,2,1,0,4,3,2,1,2)
quartiles(x)
#> $model
#> [1] "Quartiles"
#> 
#> $parameter
#> [1] "median"
#> 
#> $values
#>     Q1 Median   Q3
#> 25%  1      2 2.75
#> 
#> $data
#>  [1] 3 0 2 1 0 4 3 2 1 2
#> 
#> attr(,"class")
#> [1] "CI_model" "list"