Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: comparing multiple means with survey data


From   Jean-Gael Collomb <[email protected]>
To   [email protected]
Subject   st: comparing multiple means with survey data
Date   Mon, 22 Jun 2009 16:31:13 -0400

Hello -
I have been struggling to find a way to compare the means of a different categories of one of my variable. I think I have found a way but I wonder if there would be a more efficient way to do it. In the following example, var 2 has five categories (var2a-var2e). Here's teh commands I type (after survey setting the data):

svy linearized : mean var1, over(var2)
test [var1]var2a = [var1]var2b = [var1]var2c = [var1]var2d = [var1]var2e, mtest(b)
test [var1]var2b = [var1]var2c = [var1]var2d = [var1]var2e, mtest(b)
test [var1]var2c = [var1]var2d = [var1]var2e, mtest(b)
test [var1]var2d = [var1]var2e, mtest(b)

Is there a better way to do this?

Thanks!


Jean-Gael "JG" Collomb
PhD candidate
School of Natural Resources and Environment / School of Forest Resources and Conservation
University of Florida




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