The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Tanzania » Use of Clusters
Use of Clusters [message #11489] Thu, 29 December 2016 13:33 Go to next message
Robert is currently offline  Robert
Messages: 19
Registered: April 2015
Location: Dar Es Salaam, Tanzania
Member

Dear all, I want to include some variables like contraceptives use and prenatal care using clusters level. How do I go about it?
Thank you so much


R.Lihawa
Re: Use of Clusters [message #11505 is a reply to message #11489] Tue, 03 January 2017 19:01 Go to previous message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member

If you use Stata, you can just:

egen ClusterX = mean(X), by(cluster)

And then include "ClusterX" as a variable in your regressions.

I'm sure there is very similar code for creating sub-group means in other programs too. And there are some inference (p-value) issues down the road, but if you cluster your regressions at the level of your clustered X, you should be fine. Unless I missed something...
Previous Topic: How to generate proportion of women reporting to have used contraceptives at regional level
Next Topic: Enumeration Areas
Goto Forum:
  


Current Time: Thu Mar 28 13:08:39 Coordinated Universal Time 2024