Statalist


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

Re: st: mean tests an fweight


From   Svend Juul <[email protected]>
To   <[email protected]>
Subject   Re: st: mean tests an fweight
Date   Mon, 6 Oct 2008 08:54:59 +0200

Leonor wrote:

I�m comparing the mean of a sample by group, this is, comparing the
mean of the income earned for males and females. I�m using the Stata -
ttest - command, but i�m a bit confused because this command doesn�t
allows using weights (fweights) and I think that this affects the
results, doesn�t 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:  [email protected]
__________________________________________ 

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