sample_gamma: Calculate sample gamma-hat

View source: R/gamma_hat.R

sample_gammaR Documentation

Calculate sample gamma-hat

Description

"Of the C+D pairs of observations that are concordant or discordant, the proportion of C/(C+D) is concordant and the proportion D/(C+D) is discordant. THe difference between these proportions is called gamma (Goodman and Kruskal, 1954)" (Agresti 2010, pg 186).

Usage

sample_gamma(contingency_table)

Arguments

contingency_table

2D contingency table

Details

Calculates the sample gamma estimate, which takes values -1 <= gamma <= 1. Higher magnitude is stronger association, sign represents positive or negative association.

Value

Gamma hat


tsostarics/sostools documentation built on Nov. 22, 2022, 7:26 p.m.