plot.pgam: Plot of estimated curves

View source: R/pgam.r

plot.pgamR Documentation

Plot of estimated curves

Description

Plot of the local level and, when semiparametric model is fitted, the estimated smooth terms.

Usage

## S3 method for class 'pgam'
plot(x, rug = TRUE, se = TRUE, at.once = FALSE, scaled = FALSE, ...)

Arguments

x

object of class pgam holding the fitted model

rug

if TRUE a density rug is drawn on the bottom of the graphic

se

if TRUE error band is drawn around the fitted values

at.once

if TRUE each plot goes to a separate window, else the user is prompted to continue

scaled

if TRUE the same scale will be used for plots of smoothed functions

...

further arguments passed to method

Details

Error band of smooth terms is approximated.

Value

No value returned.

Author(s)

Washington Leite Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

See Also

pgam, pgam.fit, pgam.likelihood

Examples

library(pgam)
data(aihrio)
attach(aihrio)
form <- ITRESP5~f(WEEK)+HOLIDAYS+rain+PM+g(tmpmax,7)+g(wet,3)
m <- pgam(form,aihrio,omega=.8,beta=.01,maxit=1e2,eps=1e-4,optim.method="BFGS")

plot(m,at.once=TRUE)


pgam documentation built on Aug. 20, 2022, 1:06 a.m.