Skip to content
Prev 306526 / 398506 Next

Running different Regressions using for loops

Ok, if I'm understanding it well, you want the mean value of Price1,   , 
Price5? I don't know if it makes any sense, the coefficients already are 
mean values, but see if this is it.

price.coef <- sapply(lm.list, function(x) coef(x)[2])
mean(price.coef)

Rui Barradas
Em 28-09-2012 12:07, Krunal Nanavati escreveu: