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)

to assess a paired difference

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