Bookmark and Share

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]

st: weighted t-test


From   rosa <[email protected]>
To   [email protected]
Subject   st: weighted t-test
Date   Wed, 18 Jan 2012 15:26:16 +0100

Hi,

I want to perform a weighted t-test using survey data. Given I cannot
apply the 'ttest' command together with 'svy', I am using the 'lincom'
command (as learned in stata's FAQ).

My question is: Is testing the difference between different groups
(x1-x1) the same as testing whether the difference between groups is
significantly different than the average of the sample?

This is what I've  done:

svyset count [iw= WEEGFACT]
tab gender, gen(x)
sum x1 x1
svy: reg nr_pos x1 x2, nocons
lincom x1-x2

Thank you in advance.

Rose
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index