The testNhoods documentation and contrasts vignette require clarification on the ordering of formula variables. The default behaviour of testNhoods is to use the last fixed effect variable in the model for hypothesis testing. This contrasts with the model.matrix behaviour which needs the contrast variable to be the first.
Either change the code to make the contrasts consistent with the testNhoods behaviour or document it clearly.
The
testNhoods
documentation and contrasts vignette require clarification on the ordering of formula variables. The default behaviour oftestNhoods
is to use the last fixed effect variable in the model for hypothesis testing. This contrasts with themodel.matrix
behaviour which needs the contrast variable to be the first.Either change the code to make the contrasts consistent with the
testNhoods
behaviour or document it clearly.