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/