I am using weighted data and generating proportions of one variable, over another, e.g, after sorting VAR 2, I write the command prop VAR 1 [pweight=weight], over (VAR 2), generating proportions. I know I can use lincom or test to generate equivalency tests, but the former use a t test and the later an F test (Which generates the same p value as the t test). I understand that when comparing proportions a chi square test should be used, but this option is not available in STATA. While I can find chi square calculators on the web they seem to be more for comparing proportions in two samples rather than comparing whether, e.g. in below _subpop_1 for _prop_1 = _subpop_1 for _prop_3. Any advice would be appreciate, including any known chi square STATA ado file. Much thanks
--------------------------------------------------------------
| Logit
Over | Proportion Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
_prop_1 |
_subpop_1 | .1689706 .0432346 .1000339 .2711031
_subpop_2 | .1427851 .0647379 .0557368 .3197477
_subpop_3 | .2166859 .1076205 .0738687 .4896406
cncrnd | .1258908 .0444116 .0612615 .2411847
_subpop_5 | .1481949 .0432678 .0815762 .2541618
-------------+------------------------------------------------
_prop_2 |
_subpop_1 | .3288163 .0586031 .2254176 .4519691
_subpop_2 | .36834 .1557943 .1355549 .6843902
_subpop_3 | .4000855 .0977277 .2308118 .5971286
cncrnd | .3133561 .0618868 .2060951 .4451405
_subpop_5 | .4361276 .1044895 .2515661 .6402596
-------------+------------------------------------------------
_prop_3 |
_subpop_1 | .5022131 .0687388 .3704106 .6337087
_subpop_2 | .4888749 .134394 .2498462 .7331018
_subpop_3 | .3832286 .0870704 .2317607 .5613548
cncrnd | .5607531 .0687825 .4247001 .688249
_subpop_5 | .4156775 .0877475 .2593923 .5909859
--------------------------------------------------------------
Related Posts with Test of equal proportions
how do do a rolling WLS in stataI would like to run a rolling regression in Stata, where in each window the weights of independent v…
How to run a regression using weight by the number of children to each parentDear all, I want to examine the effects of children' s characteristics on their parent health outco…
Add missing valuesHello, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc inst…
Separating string variable with parenthesis and commasHello, I have variable that looks like Experience ('Santo Engineering', '2017-04-30', '2017-05-30'…
Why the logical in Stata of calculating missing observation is quite strangeToday I calculate Code: gen year1a=1 if yr <=ei +1 While ei=. and yr=1990, I saw the result of …
Subscribe to:
Post Comments (Atom)
0 Response to Test of equal proportions
Post a Comment