cor.kendall.tau.simple: Kendall's Tau

View source: R/cor.kendall.tau.simple.R

cor.kendall.tauR Documentation

Kendall's Tau

Description

Calculate Kendall's Rank Correlation Coefficient (also called Kendall's Tau).

Usage

cor.kendall.tau(
  x1,
  x2,
  alternative = c("two.sided", "greater", "less"),
  conf.level = 0.95
)

cor.kendall.tau.simple(
  count.concordant = 0,
  count.discordant = 0,
  ties.x1 = NA,
  ties.x2 = NA,
  sample.size = 0.5 * (1 + sqrt(8 * (count.concordant + count.discordant) + 1)),
  alternative = c("two.sided", "greater", "less"),
  conf.level = 0.95
)

Arguments

x1

Vector - group 1 - scores

x2

Vector - group 2 - scores

alternative

The alternative hypothesis to use for the test computation.

conf.level

The confidence level for this test, between 0 and 1.

count.concordant

Scalar - counts of concordant pairs between groups.

count.discordant

Scalar - counts of discordant pairs between groups.

ties.x1

Vector - group 1 - score counts tied for a particular score.

ties.x2

Vector - group 2 - score counts tied for a particular score.

sample.size

Scalar - sample size to use for the calculation.

Value

Hypothesis test result showing results of test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.