Skip to content
Prev 280177 / 398506 Next

shorter way of coding

In exactly the same way:

y.gam <- lapply(y.list, function(y)gam(y~s(x1,x2, k=1))) # list of gam objects
y.vis.gam <- lapply(y.gam, vis.gam) # list of vis.gam outputs
y.fitted <- lapply(y.gam, fitted) # list of fitted values.

Saraj

On Tue, Dec 13, 2011 at 10:48 AM, Mintewab Bezabih
<Mintewab.Bezabih at economics.gu.se> wrote: