On Mon, 3 Jul 2006, Gregor Gorjanc wrote: > Hello! > > I would like to write a function that would create a (part) of a model > matrix to be used in lm() like functions i.e > > lm(y ~ myFunc(x)) > > Where can I find a good example or a template for this as well as for > predict method?
I would look at bs() and ns() in the splines package. -thomas ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel