Introduction to R Programming
Chi-squared Test
Relationship Between Two Categorical Variables:
- Ho: Variable 1 is independent of Variable 2.
- Ha: Variable 1 is dependent of Variable 2.
Note: This is the test of independence.
Ho: Population 1 and Population 2 have the same chance of success.
Ha: Population 1 and Population 2 do not have the same chance of success.
Note: This is the test of homogeneity of proportions.
Fisher's Exact Test
When the total sample size is less than 1000, suggested by using Fisher's Exact test instead of Chi-squared test. The hypothesis is the same as the test of independence.
Notice:
The 95% confidence interval for odds ratio is (0.64, 1.46), which contains the exact odds ratio values. It is plausible that the true odds ratio could be 1, which means these two variables are independent.
- Last Updated: Feb 14, 2025 11:54 AM
- URL: https://campusguides.lib.utah.edu/r-programming
- Print Page