The DHS Program User Forum - RDF feed
https://userforum.dhsprogram.com/index.php
Use of Clusters
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=11489&th=5765#msg_11489
Thank you so much]]>Robert2016-12-29T18:33:08-00:00Re: Use of Clusters
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=11505&th=5765#msg_11505
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...
]]>Reduced-For(u)m2017-01-04T00:01:03-00:00