Full_Name: David Clayton Version: 2.0.1 OS: Linux Submission from: (NULL) (131.111.126.242) Setting contrasts for a factor to be used in a model by contrasts(fact, how.many) <- mat where mat is a matrix does not coerce mat into storage mode "double". The resultant model.matrix is garbage.