[R] Regression Summary for a List

From: Ryan J. McGuigan <rymcguigan_at_gmail.com>
Date: Fri, 29 Apr 2011 11:39:18 -0400


I am trying to run a regression on two matrices with 10 columns. I have been able to run the regression with the following code:

for(i in 1:10) {

However, I can't get the regression to spit out more than the coefficients (summary(fit) does not work). I really need the full summary for each of the 10 regressions, including the R-squared values. I'm sure there's a simple way to do this I just can't seem to figure it out.



        [[alternative HTML version deleted]]

R-help_at_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. Received on Fri 29 Apr 2011 - 19:10:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 20:00:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive