Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, and its replacement, **statalist.org** is already up and running.

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

From |
Steve Samuels <sjsamuels@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

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 sjsamuels@gmail.com 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/

**References**:**st: RE: test command for categorical variables in survey data***From:*Nanlesta Pilgrim <nanlesta@gmail.com>

- Prev by Date:
**Re: st: Power estimation in Cox ph model** - Next by Date:
**st: using IV estimation with spatial econometrics** - Previous by thread:
**RE: st: Select a particular test** - Next by thread:
**re: Re: st: stata 12 installation on mac osx** - Index(es):