Given two datasets with ordinal variables,
computes the chi squared statistic. To obtain the lambda statistic as used in
pmc(), subtract the degrees of freedom.
Examples
if (FALSE) { # \dontrun{
if(interactive()){
set.seed(1)
chi_sq(iris$Species[sample.int(nrow(iris), 10)], iris$Species[sample.int(nrow(iris), 10)])
}
} # }