print.ppgam | R Documentation |
ppgam
objectPrint a fitted ppgam
object
## S3 method for class 'ppgam'
print(x, ...)
x |
a fitted |
... |
other arguments passed to print.gam |
Calls print.gam.
Prints a details of a fitted ppgam object
print.gam
# Times of landfalling US hurricanes
data(USlandfall)
# convert dates to years, as a continuous variable
year <- as.integer(format(USlandfall$date, "%Y"))
day <- as.integer(format(USlandfall$date, "%j"))
USlandfall$year <- year + pmin(day / 365, 1)
hits <- subset(USlandfall, landfall == 1)
# this creates nodes in the default way
m1 <- ppgam( ~ s(year), hits)
print(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.