Description Usage Arguments Value References Examples
View source: R/Kruskal_Gamma.R
Computes Kruskal's Gamma on a given cartesian product Y x f(X), where Y consists of the components of y
and f(X) consists of the components of fx
. Furthermore, the asymptotic standard error as well as the modified asymptotic standard error to test the null hypothesis that the measure is zero are provided as defined in Brown and Benedetti (1977).
1 | Kruskal_Gamma(y, fx)
|
y |
a vector of realized categories. |
fx |
a vector of predicted values of the ranking function f. |
A list of length three is returned, containing the following components:
val |
Kruskal's Gamma |
ASE |
the asymptotic standard error of Kruskal's Gamma |
ASE0 |
the modified asymptotic error of Kruskal's Gamma under the null hypothesis |
Brown, M.B., Benedetti, J.K., 1977. Sampling Behavior of Tests for Correlation in Two-Way Contingency Tables. Journal of the American Statistical Association 72(358), 309-315
1 | Kruskal_Gamma(rep(1:5,each=3),c(3,3,3,rep(2:5,each=3)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.