Site Tools


duke_notes

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

Inference for Categorical Variables

Cochran-Mantel_haenszel test

A tool for adjusting out confounding of Z, if X –

> Z --> Y

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.1763411567.txt.gz · Last modified: by admin