Multilevel model with region random effects [message #26208] |
Thu, 16 February 2023 09:08 |
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
|
|
|