Professional Documents
Culture Documents
2 - Complete
Comparing Counts
In Canada there is universal health care. In the US, well... However in the
US there are more elaborate treatments offered to those patients with
access. A comparison of two random samples of 2165 US and 311 Canadian
heart attack patients a year after their heart attack asked for the patients'
own assessment of their quality of life relative to what it had been before
the heart attack:
1
Section 11.2 - Complete
2
Section 11.2 - Complete
3
Section 11.2 - Complete
The formula for the X2 test is the same as it was for the X2
Goodness of Fit test.
Use it to Gind the value of X2 for each of the 10 cells in the U.S./
Canada example.
In order to calculate the p-value (in the same way as we did for
the X2 - GOF test) we need to determine the degrees of
freedom.
For these tests (where we are using a two-way table for our
data) the degrees of freedom is found by taking the product of
1 less than the number of rows (r) and 1 less than the number
of columns (c).
df = (r - 1)(c - 1)
What are the degrees of freedom for the X2 distribution for the
US/Canada example?
4
Section 11.2 - Complete
2. Run the X2 test (go to the stat menu, highlight TESTS; scroll
down to X2 - TEST and press enter; make sure it says [A] by
observed and [B] by expected; press calculate)
Residuals
It is often useful to know which cells contributed the most to the
overall test statistic. This gives us a sense as to where our model
doesn't Git.
Notice this is just the square root of the Chi-Square statistic for
each cell.
5
Section 11.2 - Complete
6
Section 11.2 - Complete
Conditions
1. Randomization Condition - random sample from some
population. If you don't want to generalize, you don't need
this.
A study of the career plans of young women and men sent questionnaires to
7
Section 11.2 - Complete