Multilevel analysis [message #23563] |
Thu, 07 October 2021 23:51 |
Ugonna
Messages: 26 Registered: June 2020
|
Member |
|
|
Hello everyone,
I am doing a multilevel analysis in stata and I have some challenges I would like to be cleared on.
To find out the proportion of women in the community with at least secondary education, I did this:
gen sec_edu=0
replace sec_edu=1 if mat_edu>=4 & mat_edu<=5
So, to obtain the proportion at the cluster level, please what is the most appropriate option amongst these...
egen sec_edu_prop = pc(sec_edu), prop by(v021)
OR
egen sec_edu_prop = mean(sec_edu), by(v021)
OR
egen sec_edu_prop = rowmean(sec_edu), by(v021)
Then while running the analysis, do I need to apply a different kind of weight other than this?
svyset[pw=wt],psu(v021)strata(v022) singleunit(center)
Thank you for your anticipated response.
|
|
|
|
|
|
|
|
|
|
|