-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When the fixed-effect model matrix is rank deficient, a column / coefficient / factor level combination will be dropped.
In this case this code:
phia::testInteractions(model)will give the error:
Error in dimnames(x) <- dn :
length of 'dimnames' [2] not equal to array extent
from this section of the code:
Line 71 in e075c9d
| colnames(L) <- rownames(as.matrix(getCoef(model))) |
This is because the left hand matrix L contains all possible combination of levels as columns whereas getCoef(model) returns a matrix which rows are only the coefficients that were used in the model (not dropped), thus
ncol(L) > nrow(as.matrix(getCoef(model)))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels