| GKgamma | R Documentation |
The Goodman-Kruskal \gamma statistic is a measure of
association for ordinal factors in a two-way table proposed by Goodman and
Kruskal (1954).
GKgamma(x, level = 0.95)
## S3 method for class 'GKgamma'
print(x, digits = 3, ...)
x |
A two-way frequency table, in matrix or table form. The rows and columns are considered to be ordinal factors |
level |
Confidence level for a significance test of |
digits |
number to digits to use in the print method |
... |
other arguments (unused), for conformity with the print generic |
Returns an object of class "GKgamma" with 6 components, as follows
The gamma statistic
Total number of concordant pairs in the table
Total number of discordant pairs in the table
Standard error of gamma
Confidence level
Confidence interval
Michael Friendly; original version by Laura Thompson
Agresti, A. Categorical Data Analysis. John Wiley & Sons, 2002, pp. 57–59.
Goodman, L. A., & Kruskal, W. H. (1954). Measures of association for cross classifications. Journal of the American Statistical Association, 49, 732-764.
Goodman, L. A., & Kruskal, W. H. (1963). Measures of association for cross classifications III: Approximate sampling theory. Journal of the American Statistical Association, 58, 310-364.
assocstats, Kappa
Other association tests:
CMHtest(),
HLtest(),
zero.test()
data(JobSat)
GKgamma(JobSat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.