Skip to content
Prev 5437 / 20628 Next

lme : Error in y[revOrder] - Fitted : non-conformablearrays

On Thu, 24 Feb 2011, Martha Ellis wrote:

            
Well, V2 is the sticking point.  lme is failing when it has to
carry out a "vector" by "matrix" subtraction: y[revOrder] - Fitted,
where y is 1:22(1d) and Fitted is a 22*2 matrix.

z <- as.numeric(tmp$V2)
z - z # OK
tmp$V2 - z # OK
z - cbind(z,z) # OK
tmp$V2 - cbind(z,z) # nonconformable

So, not a problem in lme per se.