6. Contingency Analysis Flashcards
What is relative risk?
The probability of an outcome in the treatment group
…divided by…
the probability of
the same outcome in the control group
What is an odds ratio?
An estimate of odds calculated from a random sample
P(success)/P(failure)
how do you interpret an odds ratio
O > 1: success>failure
O < 1: failure > success
how do you calculate the SE of a odds ratio?
SE =
how do you calculate a confidence interval for an odds ratio
- use natural logs formula
- convert back using
1/ln(x) = e^x
how to use the chi-squared contingency test to test hypotheses
To calculate expected frequency under H0…
- calculate the observed probabilities for each proportion of the table
- use equation for chi-squared
- work out df by (r-1)(c-1)
- compare to chi-squared table to get p-values
when do you use the fisher’s exact test?
Only use if
-2x2 table
- chi-squared cannot be used
what does the fisher’s exact tests calculate
the actual p-value of a test not a test-statistic