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

st: Within and between variances


From   "Ineta Sokolowski" <[email protected]>
To   <[email protected]>
Subject   st: Within and between variances
Date   Tue, 13 May 2003 14:39:17 +0200

Hello!
Can anybody explain, why the one-way ANOVA (-loneway-) and -xtsum- gives
different standard deviations for within and between effects of a
variable? 

. loneway diagnosis gpnum
. xtsum diagnosis, i(gpnum)

where "diagnosis" is a dichotomous variable (0=no illness, 1=illness)
and "gpnum" is the general practitioners (GP) number (38 different
numbers). Each GP has different number of patients (between 44 and 111).

How are the SD calculated in each procedure?

Thanks in advance!

Best regards,
Ineta Sokolowski

*
*   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