The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Question on using weights for svyset and finding ICC in svy:melogit
Question on using weights for svyset and finding ICC in svy:melogit [message #12552] Wed, 14 June 2017 03:53 Go to next message
jisoojoykim is currently offline  jisoojoykim
Messages: 2
Registered: June 2016
Location: Toronto, Ontario
Member
Hello DHS experts,

I have two challenges that I have been struggling with.

1. I am using the Kenyan SPA dataset and merged the facility audit and ANC client exit interview. Therefore, I have two weight variables: one for facility and one for client-level. In setting up svyset, I have been using the following command

'svyset facil, weight(facilityweight) strata(strata5) singleunit(centered) ||_n, weight(clientweight)'
where facilityweight=facwt/1000000 and clientweight=clientwt/1000000

However, I got confused, whether the clientweight should be the weight of client being selected (wij) or the weight of client being selected within a facility (wi|j).

This quote is from STATA meglm manual - complex survey data (p. 21)

"it is not sufficient to use the single sampling weight wij , because weights enter the log likelihood at both the group level and the individual level. Instead, what is required for a two-level model under this sampling design is wj, the inverse of the probability that group j is selected in the first stage, and wi|j, the inverse of the probability that individual i from group j is selected at the second stage conditional on group j already being selected. You cannot use wij without making any assumptions about wj."

Is this method of weighting only applied in meglm? or does it also have to be applied in svyset as well?


2. I am trying to fit a multilevel mixed-effects logistic regression using svy:melogit. I want to find out the ICC (Intraclass correlation coefficient) for the effect of facility-level on the outcome in my model. In the regular melogit, I could use 'estat icc' to get the ICC, but 'svy' does not support 'estat icc'. I tried to include weights in my melogit model, as it would theoretically give the same answer. However, after including weight, I was also not able to get the ICC using 'estat icc'.

After ' melogit intdel [pweight=clientweight]|| facil: , pw(facweight) or', I get:

estat icc
estat icc not allowed after estimation with robust standard errors
r(321);


Is it theoretically not possible to get the ICC after multilevel mixed-effects logistic regression with survey weights? Or is there a way to find this in STATA, without using 'estat icc'?

Thank you in advance for your answer.
Re: Question on using weights for svyset and finding ICC in svy:melogit [message #12562 is a reply to message #12552] Thu, 15 June 2017 12:52 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3013
Registered: February 2013
Senior Member

Following is a response from DHS Senior Research Associate, Shireen Assaf:


The client weight is conditional on the facility. All the clients from the same facility have the same weight. However, I would still set up the svyset as you have.
For your second question, I believe that it is not theoretically possible to obtain the ICC. However, as this is not a DHS question, perhaps posting it in the Stata user forum would provide you with some other recommendations.

Re: Question on using weights for svyset and finding ICC in svy:melogit [message #12573 is a reply to message #12562] Thu, 15 June 2017 20:05 Go to previous message
jisoojoykim is currently offline  jisoojoykim
Messages: 2
Registered: June 2016
Location: Toronto, Ontario
Member
Thank you so much for your answer Shireen.
Previous Topic: Infant death in last 5 years
Next Topic: Stratum with single sampling unit error
Goto Forum:
  


Current Time: Tue Mar 19 06:22:38 Coordinated Universal Time 2024