Hi,
You have to divide the DHS sample weight by 1000000
[1]; and strata in DHS is v022
You can try this
gen stratid = v022
gen psu = v021
gen weight = v005/1000000
then specify the svyset like this
svyset psu [pw=weight], strata(stratid)
Reference
1. ORC Macro. Sample Weights. Available
(http://www.measuredhs.com/help/Datasets/sampling_weights.htm)
--- alazar aklilu <[email protected]> wrote:
> i had a problem with estimating logit after setting
> the survey characteristics using the DHS data. after
> using the svyset command as:
> svyset v021 [pweight=v005], strata(v102)
>
> where v005 sample weight
> v021 primary sampling unit
> v102 type of place of residen
> when i estimate using svy: logit y x1 x2 x3.......
> i get the error message <istmt>: 3499 _robust2()
> not found Mata run-time error
> in red. can you help me with how to solve this?
>
>
>
>
>
>
> *
> * For searches and help try:
> *
> http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/