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
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
2 matches
Mail list logo