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

Dhaynes haynesd2 at gmail.com
Fri Nov 25 09:02:51 CET 2011


Hello,

I am new to R.
I have multidimensional array (379,2,3) and I need to create a series of
linear regressions (379 to be exact)
I have the array stored properly I believe, but I can not use the
lm(myarray[1,1,1:3]~myarray[1,2,1:3])
I have checked to make sure they are exactly the same length.
I have also tried endlessly to convert the subset of the array back into a
vector.

any help would be appreciated.

--
View this message in context: http://r.789695.n4.nabble.com/Error-invalid-type-list-for-variable-when-using-lm-tp3045462p4106669.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list