ci_median | R Documentation |
This function calculates confidence intervals for the population median by calling ci_quantile(..., q = 0.5)
. See ci_quantile
for details.
ci_median( x, probs = c(0.025, 0.975), type = c("binomial", "bootstrap"), boot_type = c("bca", "perc", "norm", "basic"), R = 9999, seed = NULL, ... )
x |
A numeric vector. |
probs |
Error probabilites. The default c(0.025, 0.975) gives a symmetric 95% confidence interval. |
type |
Type of confidence interval. One of "binomial" (default), or "bootstrap". |
boot_type |
Type of bootstrap confidence interval ("bca", "perc", "norm", "basic"). Only used for |
R |
The number of bootstrap resamples. Only used for |
seed |
An integer random seed. Only used for |
... |
Further arguments passed to |
A list with class cint
containing these components:
parameter
: The parameter in question.
interval
: The confidence interval for the parameter.
estimate
: The estimate for the parameter.
probs
: A vector of error probabilities.
type
: The type of the interval.
info
: An additional description text for the interval.
ci_quantile
.
ci_median(1:100) ci_quantile(1:100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.