Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: testing 2 proportions using svytab

From   Daniel Egan <>
Subject   Re: st: testing 2 proportions using svytab
Date   Fri, 18 Feb 2005 10:02:40 -0500

Hello all, 

Hopefully I have solved this, but wanted to see if this made sense: 

I asked:
> I am using svytab to look at different proportions of a 4 value
> category by an indicator variable:
> svytab dummy cat4,  row se
> ------------------------------
>    1   2   3   4
> 0   a   b   c   d
> 1   e   f   g   h
> ------------------------------
> test a==e, etc...
> I would like to test whether or not the row proportions for each
> category of cat4 are significant from the opposite by indicator. I
> assume I can do this using the standard error, but am unsure of how to
> code this. 

after I :

svytab dummy cat4,  row format(%12.3f) se

I can then

test _b[p11]=_b[p21]
test _b[p12]=_b[p22]

Is this test valid (variance-wise) for a test that two proportions
from the same survey are different, given the use of svytab?

Other relevant posts include:

Any help is appreciated, 

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index