The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Pooled Survey MeLogit Syntax Query
Re: Pooled Survey MeLogit Syntax Query [message #10473 is a reply to message #10417] Wed, 27 July 2016 09:54 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3151
Registered: February 2013
Senior Member
Following is a response from DHS Stata Specialist, Shireen Assaf:

The variables and the svyset you specified are correct. However, the model you specified is not a mixed model even though you used melogit. It is in fact a logit model since you did not specify any random intercept or random slope. The melogit would revert to a logit model if you do not specify any random terms. If you are interested in a mixed model with survey having random intercepts, you could do this without the svy as follows:
melogit child_cough_care v476_1 i.v013 i.religion i.v106 i.v190 HIV_accept [pw=weight] || survey:

To use svy with melogit you need to specify two weights. I assume in your case you are interested in a model with perhaps surveys having a random intercept and clusters nested in surveys with random intercept, i.e perhaps something like.
svy: melogit child_cough_care v476_1 i.v013 i.religion i.v106 i.v190 HIV_accept [pw=weight] || survey: || cluster:

In that case you need to generate a country/survey weight and you can see the last response from Dr. Tom Pullum on two ways you can do this: http://userforum.dhsprogram.com/index.php?t=msg&goto=969 8&&srch=%22country+weight%22#msg_9698

After you have your country/survey weight and the weight you computed from v005, you can use svy with melogit as shown in the example in the Stata 14 Multilevel Mixed Effect manual page 83 for how this can be done when there are two weights: http://www.stata.com/manuals14/me.pdf

However, I suspect for the relatively low number of surveys in your analysis (13 surveys), that this model will not converge. You may want to consider performing a meta analysis and looking into the metan command written for Stata (http://www.stata.com/support/faqs/statistics/meta-analysis/).

Alternatively you could just fit a logistic model with a dummy variable for survey with no constant term.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: family planning demand satisfying (Bangladesh DHS 2004, 1999-00, 1996-97, 1993-93)
Next Topic: weighting for Services Provision Assessment data
Goto Forum:
  


Current Time: Mon Sep 2 11:25:43 Coordinated Universal Time 2024