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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.