Hello,

My data is the national health survey with a complex survey design. I want to analyse the association between the dietary score (DS in a continuous variable) and 7-year mortality with survival analysis. (age3cat, sex, higheduccat, wicat, region are confounders)

I want to check the assumption for survival analysis with Schoenfeld residual method in complex survey design (svy).


My syntax:

svy: stcox DS i.age3cat i.sex i.higheduccat i.wicat i.region

estat phtest

the state state:

invalid subcommand phtest
r(321)
;

I checked the state manual. It said that phtest cannot use with svy. However, my independent variable is the continuous variable. So, I c don't know other ways to test the assumption.

Thank you,

Chalobol Chalermsri