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 
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.









Goto Forum:
Current Time: Mon Oct 7 16:47:12 Coordinated Universal Time 2024
