I have two groups (Control and Disease). Each group has 4 individuals (A,B,C and D; X,Y,Z and P). Each subject has 3 technical replicates.
Can I use the following model matrix to remove Individual's effect?
model.matrix(~Group + Individual)
where Group is a factor and Individual is a numeric vector?
Sample details.
Any differences/similarities between the following two approaches?
model.matrix(~Group)
where Group is a factor (Control and Disease)contrast(-1,1)
model.matrix(~Subject)
where Subject is a factor (a, b, c, d, x, y, z, p)contrast((x+y+z+p)-(a+b+c+d))
I'm pretty sure the results here would be identical.