Site Tools


duke_notes

**This is an old revision of the document!**

Inference for Categorical Variables

effect modification vs confounding

Cochran-Mantel_haenszel test

  • limitations
    • can only adjust for one variable at a time

looks at two binary categorical variables while adjusting for the value of a third categorical variable

Parametric One-Sample Inference of Categorical Variables

  • one-sample proportion test
    • do NOT use Yate's continuity, so specify:
      • prop.test(…, correct = FALSE)
  • $\Chi^2$ goodness of fit test
    • to ensure sufficient sample size: $n \cdotp_{0} > 5$
    • don't use continunity corrections!
      • chisq.test(…, correct = FALSE)

NOTE: one-sample single proportion test gives a 95% CI – $\Chi^2$ does not!

Types of Probabilites

Joint, Marginal and Conditional Probabilities

to assess a paired difference

  • create histogram
  • plot as box plot
duke_notes.1763412223.txt.gz · Last modified: by admin