ci_median_diff {confintr}R Documentation

Confidence Interval for the Population Median Difference of two Samples

Description

This function calculates bootstrap confidence intervals 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 = 9999,
  seed = NULL,
  ...
)

Arguments

x

A numeric vector.

y

A numeric vector.

probs

Error probabilites. The default c(0.025, 0.975) gives a symmetric 95% confidence interval.

type

Type of confidence interval. Currently, "bootstrap" is the only option.

boot_type

Type of bootstrap confidence interval ("bca", "perc", "norm", "basic").

R

The number of bootstrap resamples.

seed

An integer random seed.

...

Further arguments passed to boot::boot.

Value

A list with class cint containing these components:

See Also

ci_quantile_diff.

Examples

x <- 10:30
y <- 1:30
ci_median_diff(x, y, R = 999)

[Package confintr version 0.1.1 Index]