Skip to content

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

3 messages · guoshicheng2005, Uwe Ligges, Mark Leeds

#
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