plot.pgam | R Documentation |
Plot of the local level and, when semiparametric model is fitted, the estimated smooth terms.
## S3 method for class 'pgam' plot(x, rug = TRUE, se = TRUE, at.once = FALSE, scaled = FALSE, ...)
x |
object of class |
rug |
if |
se |
if |
at.once |
if |
scaled |
if |
... |
further arguments passed to method |
Error band of smooth terms is approximated.
No value returned.
Washington Leite Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
pgam
, pgam.fit
, pgam.likelihood
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.