The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Service Provision Assessment (SPA) » Kenya SPA 2010 - how to apply weights
Re: Kenya SPA 2010 - how to apply weights [message #8858 is a reply to message #8771] Mon, 04 January 2016 14:32 Go to previous messageGo to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
Dear User,
Here is a response from one of our sampling experts, Dr. Mahmoud Elkasabi:
Quote:
The 2010 Kenya SPA survey is based on a stratified sample, where the country regions (v001) and the facility types (v007) were the stratification variables. Regarding the sample clusters, the facilities (v004)should be identified as sampling clusters/PSUs, especially for providers or clients based indicators, where more than one provider/client were interviewed within each facility. Therefore, the following Stata command can be used to identify the complex design and calculate the survey indicators, such as "indic".
Please note that the "strata" variable should be modified to avoid the single PSU strata. You should recode the stratification variable "strata" into a new stratification variable "strata2", in which the single PSU strata are combined with other strata.

gen fcwgt=v005/1000000
egen strata=group(v001 v007)

gen strata2 = strata 
replace strata2 = ...... if .................
etc

*complex survey paramteres 
svyset[pw=fcwgt], psu(v004) strata(strata2)

svy: mean indic
estat size
estat effects


Best,
Mahmoud
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linking dataset in SPA_Ethiopia
Next Topic: Senegal SPA
Goto Forum:
  


Current Time: Sun Sep 7 16:58:39 Coordinated Universal Time 2025