[R] Testing Two Categorical Variable

2007-12-06 Thread ramin . 1981
The chi-square does not need your two categorical variables to have equal levels, nor limitation for the number of levels. The Chi-square procedure is as follow: χ^2=∑_(All Cells)▒〖(Observed-Expected)〗^2/Expected Expected Cell= E_ij=n((i^th RowTotal)/n)((j^th RowTotal)/n) Degree of Freedom=df=

[R] Testing Two Categorical Variable

2007-12-06 Thread ramin . 1981
The chi-square does not need your two categorical variables to have equal levels, nor limitation for the number of levels. The Chi-square procedure is as follow: χ^2=∑_(All Cells)▒〖(Observed-Expected)〗^2/Expected Expected Cell= E_ij=n((i^th RowTotal)/n)((j^th RowTotal)/n) Degree of Freedom=df=