According to http://www.stata.com/support/faqs/st...ry-statistics/,
But the code
in Stata 14 on Windows yields:
Apologies for not producing a sample dataset--is there one of the sysuse datasets that has survey weights? I couldn't find a list
The svy: mean command provides
- muhat: an estimate of the population mean (mu)
- V_db: an estimate of the variance of muhat accounting for the survey design used to collect the data
- V_srs: an estimate of the variance of muhat assuming a simple random sample of the same number of observations
Code:
webuse nhanes2 svy: mean iron mat list e(V_srs) mat list e(V_db)
Is this an error in the FAQ? In particular, is e(V) what the FAQ calls e(V_db)?
. svy: mean s_library
(running mean on estimation sample)
Survey: Mean estimation
... [output]
. mat list e(V_srs)
symmetric e(V_srs)[1,1]
iron
iron .11503952
. mat list e(V_db)
matrix e(V_db) not found
r(111);
Apologies for not producing a sample dataset--is there one of the sysuse datasets that has survey weights? I couldn't find a list
Comment