In using predict with a list of lm() objects, @JD Long asked for a solution to a problem which I encounter very often; typically, it comes up when models have been fit and plots are to be produced. JD Long's solution, edited in @Joshua Ulrich's answer was elegant, with the exception of the paste
that was required.
@hadley, chief of the ddply
empire, published a solution with mdply
which I found incomprehensible and far from elegant.
Now the dplyr
(and possibly tidyr
) is taking over: is there a more intuitive way to handle this common job?
For data and sample code, see JD Long's example cited above.