[R] regression for several responses

Martin Wegmann baliola at riseup.net
Fri Jun 27 22:21:30 CEST 2003


hello, 

I only want to get the slope of a linear regression of ca. 100 variables 
against time. 

I can do for each response (100 times)
var1.lm <- lm(response~predictor)

but I thought that there might be an easier way of doing this. If I am 
including more variables it is doing a multiple regression and the output 
(slope) differs. 
 
any idea?

thanks Martin




More information about the R-help mailing list