Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: chitesti -- warning -- expected


From   Benoit Dulong <[email protected]>
To   statalist <[email protected]>
Subject   st: chitesti -- warning -- expected
Date   Wed, 10 Mar 2004 16:52:59 -0500

The command
chitesti 314795 121666 \ 0.9318*436461 0.0682*436461
produced

Chi-square test:
observed frequencies from keyboard
expected frequencies from keyboard

Warning: totals of observed and expected differ
              total
observed     436461
expected     436461

         Pearson chi2(1) = 304489.6035   Pr =  0.000
likelihood-ratio chi2(1) = 181321.5938   Pr =  0.000

                                   residuals
      observed    expected     classic     Pearson
  1.    314795  406694.375  -91899.375    -144.105
  2.    121666   29766.641   91899.359     532.657

------------------------------------------------------

QUESTION-1.
I do not understand the warning because
observed and expected do NOT differ ?

QUESTION-2
Expected (1) should be 436461*0.9318 = 406694.3598,
not 406694.375 ?

------------------------------------------------------

Thank you.
BD.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index