Learn R Programming

uwo4419 (version 0.3.0)

GKGamma: Goodman-Kruskall Gamma

Description

Calculates Goodman and Kruskall's Gamma along with its confidence interval

Usage

GKGamma(x, y = NULL, conf.level = NA, ...)

Arguments

x

Either a matrix providing a cross-tabulation of two variables (if y is NULL) or one variable that will be cross-tabulated with y.

y

Either NULL if x is a matrix or a variable that will be cross-tabulated with x.

conf.level

The confidence level of the desired confidence interval. If this is NA (the default), then no confidence intervall will be produced.

Other arguments to be passed down to the table function.

Value

A test statistic and optional confidence interval.

Examples

Run this code
# NOT RUN {
data(alberta)
GKGamma(alberta$d2, alberta$k6group)
# }

Run the code above in your browser using DataLab