This function calculates CIs for the population median by calling ci_quantile()
.
A numeric vector.
Lower and upper probabilities, by default c(0.025, 0.975)
.
Type of CI. One of "binomial" (default), or "bootstrap".
Type of bootstrap CI. Only used for type = "bootstrap"
.
The number of bootstrap resamples. Only used for type = "bootstrap"
.
An integer random seed. Only used for type = "bootstrap"
.
Further arguments passed to boot::boot()
.
An object of class "cint", see ci_mean()
for details.
ci_median(1:100)
#>
#> Two-sided 95% binomial confidence interval for the population median
#>
#> Sample estimate: 50.5
#> Confidence interval:
#> 2.5% 97.5%
#> 40 61
#>