Site Tools


duke_notes

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

Inference for Categorical Variables

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)
  • QI
  • Linear regression
  • confounding vs. effect modification

to assess a paired difference

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