The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Applying weights to multilevel hazard analysis using Cox regression
Applying weights to multilevel hazard analysis using Cox regression [message #23946] Wed, 19 January 2022 16:18 Go to previous message
Ugonna is currently offline  Ugonna
Messages: 26
Registered: June 2020
Member


Hello everyone,

I'm running a Stata code for frailty survival model (multilevel hazard analysis) using 2018 Nigeria Demographic and Health Survey Data.

I wrote the design code using the guide provided on this forum:
svyset v021, weight(wt2_1) strata(v022) , singleunit(centered) || _n, weight(wt1_1)

But when I applied the weight in the code below, it returned an error message that 'option shared() was not allowed with the svy prefix'
svy: stcox i.w_quintile elect i.anc i.v024 v025 poverty_prop sec_edu_prop, efron shared(v021) || v021:


Please how do I apply weight when running a multilevel hazard analysis using Cox regression?

Thank you.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SUEST
Next Topic: underfive children HW data: why missing a lot in IR files
Goto Forum:
  


Current Time: Sun Dec 1 18:33:05 Coordinated Universal Time 2024