valat {pgirmess} | R Documentation |
Computes the expected values a contingency table under the null hypothesis (two independent qualitative variables)
valat(matr)
matr |
a matrix (contingency table) of data counts |
Computes the expected values a contingency table under the null hypothesis (two independent qualitative variables. Warnings are fiven if the Cochran's rules if violated.
A matrix with the expected values.
Patrick Giraudoux <pgiraudo@univ-fcomte.fr>
Siegel & Castellan 1988. Non parametric statistics for the behavioural sciences. Mc Graw Hill Int. Edt.
x <- matrix(c(12, 5, 7, 7), nc = 2) x valat(x)