ci_median_diff: CI for the Population Median Difference of two Samples
Description
This function calculates bootstrap CIs for the population value of
median(x) - median(y) by calling ci_quantile_diff(, q = 0.5).
See ci_quantile_diff for details.
Usage
ci_median_diff(
x,
y,
probs = c(0.025, 0.975),
type = "bootstrap",
boot_type = c("bca", "perc", "norm", "basic"),
R = 9999L,
seed = NULL,
...
)
Value
An object of class "cint" containing these components:
parameter: Parameter specification.
interval: CI for the parameter.
estimate: Parameter estimate.
probs: Lower and upper probabilities.
type: Type of interval.
info: Additional description.
Arguments
x
A numeric vector.
y
A numeric vector.
probs
Lower and upper probabilities, by default c(0.025, 0.975).
type
Type of CI. Currently, "bootstrap" is the only option.
boot_type
Type of bootstrap CI ("bca", "perc", "norm", "basic").