Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: use of ttest to test difference of mean between the whole sample and a sub-sample.


From   "Alejandro Lopez-Feldman" <[email protected]>
To   <[email protected]>
Subject   st: use of ttest to test difference of mean between the whole sample and a sub-sample.
Date   Wed, 25 Jan 2006 22:03:40 -0800

I have a question that is more about statistics than about Stata, but I hope
some of you can help me.  I want to test if the mean of a certain variable
is different at the regional level than at the national level.

Say for example that I am using the data set described in the Stata manual
under ttest example 4 (p.483)

use http://www.stata-press.com/data/r9/census

and I am interested in testing if the national mean of the variable medage
is different from the mean of the same variable but only considering region
1.  I can see how I could do this using the command ttest. My question is:
is it valid to use ttest in such a case?

Thanks,
Alejandro


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