The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » weighting for Services Provision Assessment data
Re: weighting for Services Provision Assessment data [message #10512 is a reply to message #10486] Mon, 01 August 2016 09:35 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:

In order to use the svy command with a mixed model, you need to supply weights for each level. See 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. You need to have Stata version 14 to be able to do this.

I tried this using Senegal SPA as an example. First you need to merge the facility and FP files. Then follow the following steps:

*create the client and facility weights
gen clwt= clientwt/1000000
gen fcwt= facwt/1000000

*create the strata variable
egen strata=group(ftype region)

*svyset for mixed models using two weights
svyset facil, weight(fcwt) strata(strata) singleunit(centered) || _n, weight(clwt)

*client satisfaction outcome
recode x208 (1 = 1 "very satisfied") (2/3 =0 "more/less/not satisfied"), g(fpsat)

*client's age as an example
recode x302 (98=.), gen(age)

*this is a mixed model with random intercepts for facilities
svy: melogit fpsat age i.factype || facil:

*if you want to fit a model with random intercepts for facilities and clients you could fit the following model (this takes longer and looking at this example seems nothing changes)
svy: melogit fpsat age i.factype || facil: || clno:

I was not sure what type of mixed model you wanted to fit but this should give you an idea of how to proceed. For any more detail on using Stata with mixed models perhaps the Stata forum would help.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pooled Survey MeLogit Syntax Query
Next Topic: Svy command, r(2000) error message, NFHS-3 India
Goto Forum:
  


Current Time: Mon Sep 2 07:23:25 Coordinated Universal Time 2024