Skip to content
Prev 345491 / 398502 Next

How to generate mtable output from lm with response matrix

lm can accept a multiple response variables, and produces a list 
containing one model per response variable. I would like to compare 
those models using the mtable function from the memisc package. I cannot 
figure out the indexing of the list produced by the lm call. How can I 
extract an lm from the list produced by a call of the form:

     data(mtcars)
     lmTest = lm(cbind(mpg, hp) ~ disp + wt + carb, data=mtcars)


Best,
--Lee