Learn R Programming

pgam (version 0.3.3)

g: Utility function

Description

Collect information to smooth the term in its argument. Used in the model formula.

Usage

g(var, df, fx = TRUE)

Arguments

var
variable to be smoothed
df
equivalent degrees of freedom to be passed to the smoother
fx
if FALSE, df is ignored and smoothing parameter is chosen by cross-validation

Value

  • List containing the same elements of its argument.

Details

This function only sets things up for model fitting. The smooth terms are actually fitted by pgam.smooth.

References

Green, P. J., Silverman, B. W. (1994) Nonparametric Regression and Generalized Linear Models: a roughness penalty approach. Chapman and Hall, London

Hastie, T. J., Tibshirani, R. J.(1990) Generalized Additive Models. Chapman and Hall, London

Junger, W. L. (2004) Modelo Poisson-Gama Semi-Param�trico: Uma Abordagem de Penaliza��o por Rugosidade. MSc Thesis. Rio de Janeiro, PUC-Rio, Departamento de Engenharia El�trica

See Also

pgam, pgam.parser