The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Multilevel model with region random effects (Multilevel model with region random effects)
Multilevel model with region random effects [message #26208] Thu, 16 February 2023 09:08 Go to previous message
sophia614 is currently offline  sophia614
Messages: 1
Registered: February 2023
Member
Dear DHS survey specialists,

I am using the women's data in Benin 2018 to run a multilevel model with region random effects in Stata. Most of my variables are at the individual level; however, I do have one measured at the regional level. I tried running the following commands in Stata, but received an error message after the second command (see below).

svyset psu [pw = weight], psu(psu) strata(v023) singleunit(centered)
svyset: xtmixed dep ind $controls || region_recent:

xtmixed is not supported by svy with vce(linearized); see help svy estimation for a list of Stata estimation commands that
are supported by svy

I believe that I need to create level weights, but am not sure how to do so. Do I create them at the region-level (since my random effect is at the region level) or at the psu level?

Any help you can provide is greatly appreciated.

Best wishes,
Sophia
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Weighting in IV approach
Next Topic: Why I am getting different total observations when using iweight for tabulating a variable
Goto Forum:
  


Current Time: Sun Apr 28 13:02:58 Coordinated Universal Time 2024