Skip to content
Prev 274334 / 398506 Next

Can I use lm() to fit more than one response and more than one variables in single expression

On 13.10.2011 15:50, guoshicheng2005 wrote:
No. You will have to iterate in some way. How big can the data be that 
this is slow? Anyway, since there may be overhead by calling it via the 
formula interface,. you can directly fit using an explicitly given 
Design matrix in lm.fit().

Best,
Uwe Ligges