Pearson's chi-squared and Fisher's exact test in Stata®

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Explore how to create cross-tabulations of categorical variables and compute Pearson's chi-squared test and Fisher's exact test in Stata using the tabulate command.
    Note that you can type db tabulate into the Command window to access its dialog box.
    www.stata.com
    Copyright 2011-2019 StataCorp LLC. All rights reserved.

Комментарии • 20

  • @jchuber2
    @jchuber2 11 лет назад +13

    In a typical introductory statistics book this test is called Pearson's Chi-Squared Test of Association or sometimes just "Chi-Squared Test". This can be confusing because there are many test statistics that have a chi-squared sampling distribution (such as the Likelihood Ratio Test). In this case, the Pearson Chi-Squared value of 101.42 has two degrees of freedom and the p-value of 0.000 indicates that there is a statistically significant association between race and marital status.

  • @Nagmbeirut
    @Nagmbeirut 3 года назад +4

    Thank you for posting this. You showed us how to do the test but did not interpret the findings which is really the most important part :/

  • @statacorp
    @statacorp  10 лет назад +5

    The chi-squared values in each cell are not tests. They are the contribution of each cell to the chi-squared statistic.

  • @xcw4934
    @xcw4934 11 лет назад

    So looking at the output at 1:52 it reads Pearson Chi2(2) = 101.4215 Pr = 0.000
    The (2) indicates the degrees of freedom, the 101.42 is the actual chi sq value that is being calculated. So if you were doing this manually you'd look up your tables and under the chi distribution table look at the 2 deg of freedom row. You'll notice that the reading we have is way larger than any of the critical values listed which means we can reject the null even at the 1% confidence interval

  • @Niagaradream
    @Niagaradream 11 лет назад +9

    My question is: if I run chi2 for individual cells- how do I interpret those numbers? And what tells me which cell is statistically significant? thank you, sylwia

  • @gracebulaya8160
    @gracebulaya8160 2 года назад

    Very helpful indeed.... Thanks a lot

  • @pinktan100
    @pinktan100 12 лет назад +6

    Hi. Could you please tell how to read outcome (chi2) at the bottom in this video. Its confusing from stats books. thnx

  • @DuyNguyen-qy3ne
    @DuyNguyen-qy3ne 11 лет назад

    That is a good question. I don't think you can say a cell is statistically significant because individual cells have zero degrees of freedom, and without any df, the chi2 statistic doesn't make any sense. I believe Mr. Huber is providing individual chi2 statistics to show the analyst which cells affect the total result the most.

  • @humanistwiseman
    @humanistwiseman 3 года назад

    Thank you very much

  • @sherlynfunk1999
    @sherlynfunk1999 4 года назад

    So helpful! Thank you!!

  • @zoozolplexOne
    @zoozolplexOne 2 года назад

    Cool !!

  • @nondumisondhlovu9181
    @nondumisondhlovu9181 5 лет назад

    Very helpful... thank you for the clear explanation

  • @aminegharbi9541
    @aminegharbi9541 7 лет назад +1

    So even using chi2 or exact are the same ? There is a condition that oblige us to choose one of them ?
    Thank you too much

  • @helenapark7175
    @helenapark7175 7 лет назад +1

    I have 2*2 matrix in which one particular cell contains zero frequency. Can I still use the Fisher's exact test?

  • @florentbesnier6946
    @florentbesnier6946 Год назад

    based on your exemple, The Chi(2) p

  • @inneruniverse17
    @inneruniverse17 6 лет назад

    Thank you!

  • @fabricetayimetha2526
    @fabricetayimetha2526 8 лет назад +1

    Thank you sir

  • @domain35
    @domain35 5 лет назад +9

    Why are stata videos so dull and not intuitive? The narrator never explains the intuition or how to interpret results? Narration in these videos are equally unhelpful as the stata manual.

    • @TheGreatGuitarGurus
      @TheGreatGuitarGurus 4 года назад +1

      I see your point, but I believe this is because they already assume people using the software have a background or fundamental knowledge of statistics. In other words, they are instructional for how to use software, not how to analyze data.

  • @gracebulaya8160
    @gracebulaya8160 2 года назад

    Very helpful indeed.... Thanks a lot