Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Differences in output between `lmer` and `mixed` #4
Comments
|
The reason for this difference is that
Sum-to-zero contrasts are a better choice for a situation with interactions of categorical variables and Type III sums-of-squares tests of fixed effect terms (which is quite a common situation). In such a situation treatment contrasts will report tests at the reference level for lower-order effects (commonly known as simple main effects) instead of the intended omnibus test of the term (e.g., a normal main effect). The difference in the fixed effects estimate is given by their different interpretation. For the treatment-contrast case they reflect the difference of this factor level from the reference level. For sum-to-zero contrast they represent the difference from the (unweighted) grand mean (and for the last group the difference from the grand mean it is the negative sum of all the estimates). I have written more on this and will post it here, once the corresponding paper is accepted (and will keep the issue open until then). |
smithdanielle
commented
Oct 6, 2015
|
Aha, all is (mostly) clear. Thanks for the explanation. If you'd be willing to share a pre-print of the paper I'd be very grateful, but if not, no problem. I am currently trying to create tables for publication; my current plan is to have two, a fixed-effects table with an additional column with standardised beta values, and a table with the ANOVA output by From what I can understand, Apologies, this question is more suited to CrossValidated, but I figured that the creator of |
|
I would avoid posting the fixed effects estimates as they will most likely only cause confusion. For example, your interpretation of the sum-to-zero contrast estimates is not correct. They represent the difference from the (unweighted) grand mean and not from all other groups. And they do not directly relate to only one level, but to one level and the last level (which makes their interpretation really difficult). If you send me a mail, so I have your address, I will send you a copy of the paper. |
smithdanielle commentedOct 6, 2015
I've noticed that when specifying a model using the lmer function in the lme4 package which contains factor-type predictors, the suffix indicating the level of the predictor is a character string of that factor level, as is the case for treatment here:
However, when using the mixed function in the afex package, the suffix is numeric:
Firstly, could you comment on what causes the difference in the predictor label level suffix? Secondly, what's up with the differences in the fixed effects?