Skip to content
Prev 244069 / 398506 Next

less than full rank contrast methods

Have you tried setting singular.ok=TRUE in the call to lm?  This will start with the full set of contrasts, but only fit those that it is able to.

Otherwise you can set specific contrasts or subsets using the C (note case) or contrasts functions.