Dear Statalist,
I’m running a mixed effects linear regression, and I’m stuck with some post-estimation calculations. The idea of the study is to assess whether a given surgeon (random effect) influences surgical outcomes after adjusting for (and measuring) the influence of fixed patient and surgeon factors. I’ve done some testing and I’ve ensured that mixed models are appropriate here. I’m mostly interested in % variability. I’m using a pseudo R^2 method to calculate the % variability contributed by the fixed effects (by inputing the chi2 output from testparm). This method has previously been accepted in our field. However, I’m stuck trying to assess the % variability contributed by the random effect of Surgeon_ID. Here is the model:
One method I found is to use the variance partition coefficient (VPC), or equivalently the intraclass correlation coefficient (ICC) to assess the % variability contributed by “between surgeon” factors. However, the % variability contributed by the fixed effects (using pseudo r^2) and the random effects (using VPC) don’t add up to 100%. f the VPC is 20% for example, then it follows that the "within group" variability is 80%. But the pseudo r^2 estimate I get of all fixed factors is not 80%.
Maybe this has to do with using two different methods to calculate variability? In that case, is there a method for calculating the pseudo r^2 from the random effect? I've scoured the web and can't find much unfortunately. Thanks for any help!
Regards,
Julien
I’m running a mixed effects linear regression, and I’m stuck with some post-estimation calculations. The idea of the study is to assess whether a given surgeon (random effect) influences surgical outcomes after adjusting for (and measuring) the influence of fixed patient and surgeon factors. I’ve done some testing and I’ve ensured that mixed models are appropriate here. I’m mostly interested in % variability. I’m using a pseudo R^2 method to calculate the % variability contributed by the fixed effects (by inputing the chi2 output from testparm). This method has previously been accepted in our field. However, I’m stuck trying to assess the % variability contributed by the random effect of Surgeon_ID. Here is the model:
mixed EBL_OR i.agecat male race c.Preop_GFR i.bmicat i.cci_cat2 c.Tm1Sz1 i.renal || Surgeon_No:, var mle
Maybe this has to do with using two different methods to calculate variability? In that case, is there a method for calculating the pseudo r^2 from the random effect? I've scoured the web and can't find much unfortunately. Thanks for any help!
Regards,
Julien
Comment