Skip to content
Prev 278517 / 398503 Next

Error: invalid type(list) for variable when using lm()

On Nov 25, 2011, at 11:41 AM, Dhaynes wrote:

            
Generally a bad idea to attach objects. It's a sin that is committed  
by several authors but it generally gets in the way of safe code  
writing. Better to use with().
But what are these various grade-named objects? Are you sure you  
didn't coerce the matrix to character mode? What is str(mymatrix)  
after this?