Re: [R] Regression Summary for a List

2011-04-29 Thread Phil Spector
Ryan - summary expects an lm object, and fit is a list. So you need to use something like lapply(fit,summary) to pass each list element to the summary function. - Phil Spector Statistical Computing Facility

[R] Regression Summary for a List

2011-04-29 Thread Ryan J. McGuigan
Hi, 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: fit=list() for(i in 1:10) { fit[[i]]=lm(monret[,i]~janret[,i]) } However, I can't get the regression to spit out more than the coefficients (summary(fit) does not