Skip to content
Prev 158073 / 398498 Next

efficient use of lm over a matrix vs. using apply over rows

In that case, using the example data from the prior response all you need
is:

coef(lm(t(mat) ~ x))
On Sun, Oct 5, 2008 at 1:18 PM, Mark Kimpel <mwkimpel at gmail.com> wrote: