powered by
This function calculates confidence intervals for the population median by calling ci_quantile(..., q = 0.5). See ci_quantile for details.
ci_quantile(..., q = 0.5)
ci_quantile
ci_median( x, probs = c(0.025, 0.975), type = c("binomial", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999, seed = NULL, ... )
A numeric vector.
Error probabilites. The default c(0.025, 0.975) gives a symmetric 95% confidence interval.
Type of confidence interval. One of "binomial" (default), or "bootstrap".
Type of bootstrap confidence interval ("bca", "perc", "norm", "basic"). Only used for type = "bootstrap".
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.
boot::boot
A list with class cint containing these components:
cint
parameter: The parameter in question.
parameter
interval: The confidence interval for the parameter.
interval
estimate: The estimate for the parameter.
estimate
probs: A vector of error probabilities.
probs
type: The type of the interval.
type
info: An additional description text for the interval.
info
ci_quantile.
# NOT RUN { ci_median(1:100) ci_quantile(1:100) # }
Run the code above in your browser using DataLab