View Single Post
Old 03-26-2015, 07:23 AM   #8
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

Quote:
How?
Let's take a simpler example:

Code:
df <- data.frame(Sample=factor(c(1:10)), Group=c(rep("A",5), rep("B",5)))
mm <- model.matrix(~Sample+Group, df)
mm
Have a look at "mm". The last column is simply the sum of columns 6-10, meaning that if you estimate those coefficients, then the last coefficient is completely determined by them (or inversely, if you estimate it then the others are already determined). Something along these lines is also the case for the model matrix in your design.
dpryan is offline   Reply With Quote