The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Egypt » 2004 Egypt Service Provision Assessment svy:tab command use
2004 Egypt Service Provision Assessment svy:tab command use [message #9807] Mon, 23 May 2016 15:12 Go to next message
elaranda is currently offline  elaranda
Messages: 2
Registered: May 2016
Member
Your help with the use of this command is greatly appreciated.

I am using the 2004 ESPA to explore factors associated with IMCI compliance in sick child visits. I have read through the Forums on weighing and setting up the svy tab command, but I'm still not clear about what the correct Primary Sampling Unit (PSU) and strata are for the 2004 ESPA.
Is the following coding correct?
svyset, clear
svyset cftype [pweight=facwt], strata (cgovern)

(where cftype is the facility type and cgovern is the governates (region) variable; In the ESPA report summary, the authors state that the sample was stratified by governates.)

When I run this command I get the following result:
pweight: facwt
VCE: linearized
Single unit: missing
Strata 1: cgovern
SU 1: cftype
FPC 1: <zero>

I'm able to run my svy:tab commands after that but I'm not sure I have the correct results.

Your assistance is greatly appreciated.


Esther A
Re: 2004 Egypt Service Provision Assessment svy:tab command use [message #9912 is a reply to message #9807] Mon, 06 June 2016 08:17 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3017
Registered: February 2013
Senior Member
Following is a response from DHS Stata Specialist, Shireen Assaf:

In SPAs the PSU is the facility itself so you would use facil or fcode in the Egypt SPA.
Stratification is usually by facility type and region, in Egypt the region is represented by the governorates so you would need to create a strata variable as follows :
egen strata=group(ftype govern )

Then for facility data you would use the strata variable you created above in the svyset as follows:
svyset fcode [pw=facwt], strata(strata)

For client level data ( you need to use the client weight, clwt) and use cgoven and cftype to create the strata variable.

If you receive error and error stating "Note: Missing standard errors because of stratum with single sampling unit."

Then use:
svyset fcode [pw=facwt], strata(strata) singleunit(centered)

Hope this helps.
Re: 2004 Egypt Service Provision Assessment svy:tab command use [message #10009 is a reply to message #9912] Wed, 15 June 2016 17:21 Go to previous message
elaranda is currently offline  elaranda
Messages: 2
Registered: May 2016
Member
Thank you for your response.

I coded as you suggested. I did get a missing error initially for the single unit, but fixed it with the inclusion of singleunit(centered). It worked! Since I am analyzing sick child observations, I am using cftype and cgovern for the strata.

My final coding is the following should it be helpful to others:

svyset, clear
egen strata=group(cftype cgovern)
svyset fcode [pw=facwt], strata (strata) singleunit(centered)

Thanks so much!


Esther A
Previous Topic: Domestic violence module
Next Topic: Recodes
Goto Forum:
  


Current Time: Fri Mar 29 10:31:41 Coordinated Universal Time 2024