Hi All
I am trying to compute confidence interval after running a survey proportion using e(b) and e(V). However, I cant match the confidence interval presented in the output. Here is what i am doing:
svy: prop hb_anaemia t if state==28
(running proportion on estimation sample)
Survey: Proportion estimation
Number of strata = 1 Number of obs = 401
Number of PSUs = 60 Population size = 404.05598
Design df = 59
_prop_1: hb_anaemia = Non-anaemic
--------------------------------------------------------------
| Linearized Logit
| Proportion Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
hb_anaemia |
_prop_1 | .6042869 .0454942 .5106642 .6908414
Anaemic | .3957131 .0454942 .3091586 .4893358
-------------+------------------------------------------------
t |
1 | 1 . . .
--------------------------------------------------------------
. matrix b = e(b)
. matrix v = e(V)
. scalar bound = sqrt(v[2,2])*invttail(e(df_r),0.025)
.
. scalar ll = b[1,2]-bound
. scalar ul = b[1,2]+bound
.
. di ll
.30467944
. di ul
.48674686
As you can see for Anaemic, the lower bound is 0.30467944 as per my manual calculation, whereas it is 0.3091586 as per STATA's internal calculation and presented in the table. Same problem with upper bound. Am I missing something here? Why am I not getting the same CIs ? Will really appreciate your help.
Rajib
I am trying to compute confidence interval after running a survey proportion using e(b) and e(V). However, I cant match the confidence interval presented in the output. Here is what i am doing:
svy: prop hb_anaemia t if state==28
(running proportion on estimation sample)
Survey: Proportion estimation
Number of strata = 1 Number of obs = 401
Number of PSUs = 60 Population size = 404.05598
Design df = 59
_prop_1: hb_anaemia = Non-anaemic
--------------------------------------------------------------
| Linearized Logit
| Proportion Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
hb_anaemia |
_prop_1 | .6042869 .0454942 .5106642 .6908414
Anaemic | .3957131 .0454942 .3091586 .4893358
-------------+------------------------------------------------
t |
1 | 1 . . .
--------------------------------------------------------------
. matrix b = e(b)
. matrix v = e(V)
. scalar bound = sqrt(v[2,2])*invttail(e(df_r),0.025)
.
. scalar ll = b[1,2]-bound
. scalar ul = b[1,2]+bound
.
. di ll
.30467944
. di ul
.48674686
As you can see for Anaemic, the lower bound is 0.30467944 as per my manual calculation, whereas it is 0.3091586 as per STATA's internal calculation and presented in the table. Same problem with upper bound. Am I missing something here? Why am I not getting the same CIs ? Will really appreciate your help.
Rajib
Comment