Lee Hachadoorian
2014-Nov-09 04:34 UTC
[R] 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 -- Lee Hachadoorian Assistant Professor in Geography, Dartmouth College http://geospatial.commons.gc.cuny.edu http://freecity.commons.gc.cuny.edu