Learn R Programming

pgirmess (version 1.3.8)

valat: 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

Value

  • A matrix with the expected values.

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.

References

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

See Also

chisq.test, valchisq

Examples

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

Run the code above in your browser using DataLab