Statalist


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

Re: st: mean tests an fweight


From   Svend Juul <SJ@SOCI.AU.DK>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: mean tests an fweight
Date   Mon, 6 Oct 2008 08:54:59 +0200

Leonor wrote:

Im comparing the mean of a sample by group, this is, comparing the
mean of the income earned for males and females. Im using the Stata -
ttest - command, but im a bit confused because this command doesnt
allows using weights (fweights) and I think that this affects the
results, doesnt it?
Do you know another way to compare the means of the sample using weights?

=======================================================

You don't tell us what kind of data you have. If you have summary 
data with N, mean, and SD for each groups, you can use -ttesti-. 
If you have a dataset where an observation may represent several 
individuals (the number defined by -n-), you could

    expand n

before -ttest-.

Hope this helps
Svend

__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone:  +45 8942 6090
Home:   +45 8693 7796
Email:  sj@soci.au.dk
__________________________________________ 

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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index