Description Usage Arguments Details See Also
Calculates variance Sen's Test Statistic Z.
1 | ts_variance(n, u = rep(1, length.out = n))
|
n |
A numeric. Length of the ranking. |
u |
Contingency table of ranks in one ranking. Will be coerced to numeric vector. |
This is equivalent to the calculation of the variance Kendall's test statistic, accounting for duplicates in only one of the rankings:
σ^{2}_{S} = \frac{n(n-1)(2n+5) \times ∑_{t \in g_{e}}t(t-1)(2t+5)}{18}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.