Home » Topics » Domestic Violence » Multilevel Weights
Re: Multilevel Weights [message #15354 is a reply to message #15332] |
Tue, 03 July 2018 23:04 |
Liz-DHS
Messages: 1516 Registered: February 2013
|
Senior Member |
|
|
A response from Dr. Shireen Assaf:
Quote:
Dear user,
To be able to use multilevel modeling with DHS data and the svy command, a weight must be applied for each level. Since we only have one weight, we can make the assumption that all individuals in the household have the same weight. The Stata code to run a multilevel model for a binary outcome is below using the melogit command. However, you can use other mixed model commands if your outcome had a different distribution. The svyset should be the same.
gen wt=v005/1000000
gen wt2=1
svyset v001, weight(wt) strata(v023) , singleunit(centered) || _n, weight(wt2)
*this is a random intercept model
svy: melogit outcome var1 var2 || v001:
*random intercept and random slop for var3
svy: melogit outcome var1 var2 || v001: var3
*for this model you can also add the covariance(unstructured) option. Please read the stata documentation for the melogit command on this
* you can also check the Stata documentation for svyset, they discuss how to construct this for multistage sample design.
Hope this helps.
Best,
Shireen Assaf
Technical Specialist
The DHS Program
|
|
|
|
|
Multilevel Weights
By: swinter on Tue, 11 August 2015 13:16
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Tue, 18 August 2015 12:28
|
|
|
Re: Multilevel Weights
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Wed, 27 January 2016 12:39
|
|
|
Re: Multilevel Weights
By: ttuti on Thu, 16 June 2016 05:35
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Wed, 29 June 2016 11:15
|
|
|
Re: Multilevel Weights
By: e_lee on Fri, 23 September 2016 14:16
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Mon, 26 September 2016 11:37
|
|
|
Re: Multilevel Weights
By: soumava on Fri, 12 May 2017 16:01
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Wed, 28 June 2017 16:55
|
|
|
Re: Multilevel Weights
By: ab803 on Fri, 13 October 2017 11:18
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Wed, 08 November 2017 14:52
|
|
|
Re: Multilevel Weights
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Wed, 04 April 2018 15:50
|
|
|
Re: Multilevel Weights
By: Hassen on Mon, 30 April 2018 14:53
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Tue, 01 May 2018 23:28
|
|
|
Re: Multilevel Weights
By: Hassen on Wed, 02 May 2018 03:14
|
|
|
Re: Multilevel Weights
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Tue, 03 July 2018 23:04
|
|
|
Re: Multilevel Weights
By: teketo on Thu, 04 October 2018 06:35
|
|
|
Re: Multilevel Weights
By: aheto on Sat, 04 April 2020 12:00
|
|
|
Re: Multilevel Weights
By: Liz-DHS on Fri, 17 April 2020 09:17
|
Goto Forum:
Current Time: Fri Nov 22 12:51:18 Coordinated Universal Time 2024
|