Learn R Programming

clickR (version 0.9.45)

GK_assoc: Computes Goodman and Kruskal's tau

Description

Returns Goodman and Kruskal's tau measure of association between two categorical variables

Usage

GK_assoc(x, y)

Value

Goodman and Kruskal's tau

Arguments

x

A categorical variable

y

A categorical variable

Examples

Run this code
data(infert)
GK_assoc(infert$education, infert$case)
GK_assoc(infert$case, infert$education) #Not the same

Run the code above in your browser using DataLab