fitted.ppgam: Extract Model Fitted Values

View source: R/s3.R

fitted.ppgamR Documentation

Extract Model Fitted Values

Description

Extract Model Fitted Values

Usage

## S3 method for class 'ppgam'
fitted(object, ...)

Arguments

object

a fitted ppgam object

...

not used

Value

Fitted values extracted from the object ‘object’.

Examples


# 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)

m1 <- ppgam( ~ s(year), hits)
fitted(m1)


ppgam documentation built on Sept. 11, 2024, 7:12 p.m.

Related to fitted.ppgam in ppgam...