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]

Re: st: RE: test command for categorical variables in survey data


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: RE: test command for categorical variables in survey data
Date   Tue, 28 Feb 2012 18:04:37 -0500


Nalesta Pilgrim:

The test in -svy: tab- (like the chi square test in -tabulate twoway- is a test of independence, not a test of equality of proportions. (And, with -svy-, the distribution of the test is not Chi Square, but that is a different matter.)
You are apparently mixing up the chi square test with the test for equality of means in one-way ANOVA. It's more analogous to a test for interactions in ANOVA.

We need an example of what you want to do. Start with this code and point out proportions you wish to test for equality. 

**********************
webuse nhanes2b
svy: tabulate race diabetes
***********************

Steve
[email protected]


On Feb 23, 2012, at 2:01 PM, Nanlesta Pilgrim wrote:

Dear Statalist,
I'm wondering if there is a test command for categorical variables
with survey data.
With continuous variables, you can run the test command:
. svy: mean testresult, over(childage)
. test [testresult]1=[testresult]2

For categorical variables, you run:
svy: tab wealth province

My question: how can I test which wealth category is significantly
different from another wealth category if the overall test result
indicates there is a significant difference but all the confidence
intervals overlap?

Thanks!
Nandy
*
*   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/


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