which variable is the response; the default is the first
smoother
what smoother to use; default is cs
arg
any additional arguments required by the smoother
form
should a formula be returned (default), or else a character version of the formula
Value
a list of formulas is returned, one for each column in frame (excluding the response).
For a numeric variable, say x1, the formula is
~ 1 + x1 + cs(x1)
If x1 is a factor, the last smooth term is omitted.
Details
Each formula describes an ordered regimen of terms, each of which is eligible on their own for
inclusion in the gam model.
One of the terms is selected from each formula by step.gam.
If a 1 is selected, that term is omitted.
References
Chambers, J. M. and Hastie, T. J. (1991). Statistical Models in S, Chapman and Hall, London.
Rigby, R. A. and Stasinopoulos D. M. (2005). Generalized additive models for location, scale and shape,(with discussion),
Appl. Statist., 54, part 3, pp 507-554.
Stasinopoulos D. M., Rigby R.A. and Akantziliotou C. (2006) Instructions on how to use the GAMLSS package in R.
Accompanying documentation in the current GAMLSS help files, (see also http://www.gamlss.org/).
Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R.
Journal of Statistical Software, Vol. 23, Issue 7, Dec 2007, http://www.jstatsoft.org/v23/i07.