tau_ci: Confidence intervals for variants of Kendall's tau

tau_ciR Documentation

Confidence intervals for variants of Kendall's tau

Description

Confidence intervals for variants of Kendall's tau

Usage

tau_ci(
  x,
  y,
  variant = c("tau", "tau_strict", "tau_a", "tau_b", "tau_c", "somers_d", "gk_gamma",
    "wilsons_e"),
  alpha = 0.05,
  alternative = c("two_sided", "greater", "less"),
  method = "BCa",
  n_boot = 1000
)

Arguments

x, y

numeric vectors of data values. x and y must have the same length.

variant

Which variant to return.

alpha

confidence level for the returned confidence interval.

alternative

indicates the alternative hypothesis and must be one of "two_sided", "greater" or "less". You can specify just the initial letter. "greater" corresponds to positive association, "less" to negative association.

method

Method to used to calculate the confidence interval. Currently only "BCa", the accelerated bootstrap, is supportLed.

n_boot

Number of bootstrap samples

Value

An interval containing the confidence limits.


JonasMoss/rankr documentation built on Feb. 5, 2024, 11:56 a.m.