9. Count data, contingency tables and goodness of fit Flashcards
1
Q
Goodness of fit: how to find q
A
q = sum (Oi - Ei)^2 / Ei
2
Q
Finding expected values that have poisson distribution
A
dpois(0:n, μ)
3
Q
p-value for a contingency table
A
1 - pchisq(q, v)
4
Q
V (degrees of freedom) of a contingency table.
A
v = (r-1)(c-1)