plot.pgam {pgam} | R 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 |
rug |
if |
se |
if |
at.once |
if |
scaled |
if |
... |
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)
[Package pgam version 0.4.17 Index]