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

st: Testing means of subgroups vs mean of full sample using svymean


From   Nblunch@worldbank.org
To   statalist@hsphsun2.harvard.edu
Subject   st: Testing means of subgroups vs mean of full sample using svymean
Date   Mon, 22 Sep 2003 00:25:43 -0400

Dear Stata-listers,

I am sure, I am missing something here but after spending a good time now trying
to figure this out, I reluctantly decided to throw the towel in the ring...

Specifically, I want to test the mean(s) of sub-samples vs the mean of the full
sample using the "svymean"-command.  For example, say that I am interested in
the mean income of literates vs the mean income for the sample as a whole.  I
can test the means of the literate and illiterate sub-groups against each other
by, say (following the "Survey Data" manual for Stata 8, p. 16), where the
variable literate is dummy-coded:

. svymean income, by(literate)
. lincom [income]1 - [income]0

But how do I test the mean income for literates, say, against the mean income
for the entire sample?

Thank you very much in advance!!

Cheers,

Niels-Hugo

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
Niels-Hugo Blunch
World Bank
HDNSP, MSN G7-703
1818 H Street, N.W.
Washington D.C. 20433, U.S.A.
Phone: (+1) 202 473 5599, Fax: (+1) 202 522 3252
Email: nblunch@worldbank.org
Social Protection on the Web: http://www.worldbank.org/sp
The Labor Markets Group in SP: http://www.worldbank.org/labormarkets


*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index