Re: [Rd] "Template" for model.matrix functions

2006-07-03 Thread Thomas Lumley
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 lo

[Rd] "Template" for model.matrix functions

2006-07-02 Thread Gregor Gorjanc
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? Thanks! -- Lep pozdrav / With regards, Gregor Gorjanc ---