I am running mixed effect Cox models using the coxme function {coxme} in R, and I would like to check the assumption of proportional hazard.
I know that the PH assumption can be verified with the cox.zph function {survival} on cox.ph model.
However, I cannot find the equivalent for coxme models.
In 2015 a similar question has been posted here, but had no answer.
my questions are: 1) how to test PH assumption on mixed effect cox model coxme? 2) if there is no equivalent of the cox.zph for coxme models, is it valid for publication in scientific article to run mixed effect coxme model but test the PH assumption on a cox.ph model identical to the coxme model but without random effect?
Thanks in advance for your answers. Regards
You can use
frailtyoption incoxphfunction. Let's say, your random effect variable isB, your fixed effect variable isA. Then you fit your model as belowNow, you can use
cox.zph(myfit)to test the proportional hazard assumption.