Would anyone be able to explain to me why I get a different number of observations when applying aweight in STATA.
When unweighted I get the following number of observations from the summary statement:
sum expshare if wave == 6 & expshare > 0 & expshare < 1 & expshare0==0
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
expshare | 6,843 .0416952 .0670938 .000657 .9936517
When I apply aweight the number of observations increases to 6785
. sum expshare if wave== 6 & expshare > 0 & expshare < 1 & expshare0==0 [aweight=hhwth]
Variable | Obs Weight Mean Std. Dev. Min Max
-------------+-----------------------------------------------------------------
expshare | 6,785 7406469.13 .0390872 .0634303 .000657 .9936517
Many thanks for your help!
Ewa
When unweighted I get the following number of observations from the summary statement:
sum expshare if wave == 6 & expshare > 0 & expshare < 1 & expshare0==0
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
expshare | 6,843 .0416952 .0670938 .000657 .9936517
When I apply aweight the number of observations increases to 6785
. sum expshare if wave== 6 & expshare > 0 & expshare < 1 & expshare0==0 [aweight=hhwth]
Variable | Obs Weight Mean Std. Dev. Min Max
-------------+-----------------------------------------------------------------
expshare | 6,785 7406469.13 .0390872 .0634303 .000657 .9936517
Many thanks for your help!
Ewa

Comment