coef.ppgam: Extract Model Coefficients

View source: R/s3.R

coef.ppgamR Documentation

Extract Model Coefficients

Description

Extract Model Coefficients

Usage

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

Arguments

object

a fitted ppgam object

...

not used

Value

Model coefficients 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)
coef(m1)


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

Related to coef.ppgam in ppgam...