[Rd] Guidelines for writing model term functions (?)

From: Roger D. Peng <rpeng_at_jhsph.edu>
Date: Sat 03 Jul 2004 - 00:18:06 EST

Are there any general guidelines for writing functions that appear in model formulas for functions like lm()/glm()? The ones I can think of are ns()/bs() in `splines' and s() in `mgcv'. It seems that ns()/bs() basically create matrix with a number of attributes and a class, while s() returns a list of parameters. It seems that gam() in `mgcv' has its own way of dealing with formulas so maybe that's not a great example, but are there any suggestions for writing a function that might appear in the formula for, say, lm() or glm()?




Roger D. Peng

R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Sat Jul 03 00:21:17 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:07 EST