valat {pgirmess}R Documentation

Expected values of a contingency table under the null hypothesis

Description

Computes the expected values a contingency table under the null hypothesis (two independent qualitative variables)

Usage

valat(matr)

Arguments

matr a matrix (contingency table) of data counts

Details

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.

Value

A matrix with the expected values.

Author(s)

Patrick Giraudoux <pgiraudo@univ-fcomte.fr>

References

Siegel & Castellan 1988. Non parametric statistics for the behavioural sciences. Mc Graw Hill Int. Edt.

See Also

chisq.test, valchisq

Examples

x <- matrix(c(12, 5, 7, 7), nc = 2)
x
valat(x)

[Package pgirmess version 1.3.8 Index]