1 / 8

Analyzing categorical data

Analyzing categorical data. S-012. Categorical data. Non-continuous (discrete values) Categories such as: “high” or “low” Yes / no Graduate / non-graduate College vs. non-college. These are binary variables. Or multiple categories High/medium/low Agree/neutral/disagree

coyne
Télécharger la présentation

Analyzing categorical data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Analyzing categorical data S-012

  2. Categorical data • Non-continuous (discrete values) • Categories such as: • “high” or “low” • Yes / no • Graduate / non-graduate • College vs. non-college These are binary variables • Or multiple categories • High/medium/low • Agree/neutral/disagree • Elementary/middle/high school • Public / private school Sometimes the categorical variables are just categories (sometimes call “nominal”). Other times they may represent some order (ordinal).

  3. Approaches for comparing groupsWhen we have categorical data Parallel to our strategies for comparing means • Construct separate confidence intervals • Do they overlap? • Construct a confidence interval on the difference • Does the CI include zero? • A z-test on the difference between the proportions • Very similar to a t-test for the means • The chi-square test (NHST) • Is the probability value less than .05 (our alpha level or significance level)? Options 1,2 and 3 are parallels to our approaches for comparing means. These all work fine for two groups. Option 4 is something new. It works for two groups, or more than two groups. So it is very versatile.

  4. CI approachDo they overlap? • Example 1: 95% CI: Null hypothesis: The proportions in the populations are equal. H0: Pa= Pb or H0: pa = pb Conclusion: The CIs overlap. We cannot reject Ho. We cannot conclude that the population proportions are different.

  5. CI for the difference is the pooled proportion (using the sample sizes as weights) Here the pooled p (p-hat) is .68 95% CI: .10 ± .11 Or: [ -0.01 , .21 ] Conclusion: The CI includes zero. We cannot reject Ho. We cannot conclude that the population proportions are different.

  6. A z-test for the difference between the sample proportions This is very parallel to a t-test on the means. = In this example, we get z = 1.75 p = .04 (1 tailed) p = .08 (2-tailed) Conclusion: The probability value is not less than 0.05. We cannot reject Ho. We cannot conclude that the population proportions are different.

  7. Example 2Three approaches Next: Let’s use a chi-square test

  8. Examples:

More Related