mk_tau: Calculate Kendall's Tau

Description Usage Arguments Details Value See Also

View source: R/mankendall.R

Description

Calculate Kendall's Tau

Usage

1
mk_tau(score, n, t = NULL, u = NULL)

Arguments

score

Man Kendall Score, see mk_score.

n

Length of ranking/time series.

t

Contingency table of ranking \mjseqnR_t. If NULL (the default), assumes that no duplications are present.

u

Contingency table of ranking \mjseqnR_u. If NULL (the default), assumes that no duplications are present.

Details

\loadmathjax \mjsdeqn\tau

_a = \fracS\frac12n(n-1) = \fracS\binomn2 \mjsdeqn\tau_b = \fracS\sqrt\frac12n(n-1) - \frac12 \sum_t \in g_t t(t-1) \times \sqrt\frac12n(n-1) - \frac12\sum_u \in g_u u(u-1)

Value

A named vector (Tau a or Tau b, depending on the input).

See Also

mk_test


Florian-Katerndahl/simpleRank documentation built on Dec. 17, 2021, 8:28 p.m.