Dear Statalists,
I am using a large scale national dataset for my analyses. Since it is complex survey data, I am using the svyset command to let STATA know the survey design characteristics. Below is my code:
. svyset psu [pweight=W3W2STUTR],strata [STRATA_ID] vce (linerized) singleunit(centered)
I have a variable named mtheff11, which has 5435 missing values out of a total number of 25206 observations (showing below)

When I use svy: prefix to calculate its weighted mean, the number of observations=24607 (showing below). But the thing is the variable mtheff11 has 5435 missing values. Only 19771 observations have value on this variable. Where did the number 24607 come from? Can anybody give me a hint on how STATA calculated the number of obs? I feel confident that I am using the right code to calculate the mean for the variable I am interested in. Thank you so much!!

I am using a large scale national dataset for my analyses. Since it is complex survey data, I am using the svyset command to let STATA know the survey design characteristics. Below is my code:
. svyset psu [pweight=W3W2STUTR],strata [STRATA_ID] vce (linerized) singleunit(centered)
I have a variable named mtheff11, which has 5435 missing values out of a total number of 25206 observations (showing below)
When I use svy: prefix to calculate its weighted mean, the number of observations=24607 (showing below). But the thing is the variable mtheff11 has 5435 missing values. Only 19771 observations have value on this variable. Where did the number 24607 come from? Can anybody give me a hint on how STATA calculated the number of obs? I feel confident that I am using the right code to calculate the mean for the variable I am interested in. Thank you so much!!
Comment