Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: comparison of means
From
Richard Goldstein <[email protected]>
To
[email protected]
Subject
Re: st: comparison of means
Date
Tue, 12 Apr 2011 15:19:19 -0400
you don't say exactly what you want to do, but you can use regression to
do a t-test (e.g.); make the values your left-hand-side variable and the
only predictors are the dummy for group and the constant; the result for
the dummy will then be exactly the same as what you would get from a
t-test; you can also correct for unequal variances (vce(robust) option)
and to other things, and, of course, regress allows for weights
Rich
On 4/12/11 3:09 PM, Abelev, Melissa wrote:
> Hi -
>
> I'm trying to do some simple descriptive statistics. I want to do a
> two-group comparison of means. The trick is that the data are weighted,
> and stata's "classical tests of hypotheses" doesn't allow me to do it.
> I found a journal article on a relatively complex calculation to do it
> by hand. I'm hoping stata has a way to do this. Is there?
>
> - Melissa
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/