Closed wolski closed 3 years ago
Sorry for the late reply. We are seeing some changes in the lmerTest team which are causing the delay - we will be back with a follow-up as soon as possible.
Cheers Rune
Sorry for the late reply.
The denominator degrees of freedom, when testing the two fixed effects (celltype and class_therapy) is in this case the residual degrees of freedom, which is equal to 542-16=526, where 16 is the number of free parameters in the model. If the model included the random interaction between the fixed effects and the random effect, the denominator degrees of freedom would be lower, since the fixed effects would be tested against the random interaction and not the error. The df for the (Intercept) is only around 12 since it is tested against the random effect.
In other words, the degrees of freedom are completely okay and not a mistake. You would get very similar results when using e.g. proc mixed in SAS.
Hope it clarified things a bit?
Cheers, Sofie
Hello,
I would like to get some p-values from a mixed effects linear model and hence I decided to use the lmerTest package.
However, I am surprised to see very large degrees of freedom for some coefficients (almost equal to the residual degrees of freedom). In the attached model some of the parameters have almost 530 df while the intercept for instance has only 12. I would expect degrees of freedom for all coefficient to be of the same order.
also please note that we have 13 levels in the random effect.
and 536 residual degrees of freedom
Hence, I am guessing that there should no more than 536/13 n's for parameter estimation (Because If I aggregated the repeated measurements modelled using the peptide_Id variable this would reduce the size of the data by this factor).
Not sure therefore, what to think about the df estimates obtained?
Also when using the function contest the degrees of freedom estimates are much more that I would expect.
Could you please give me advice how to proceed?