Learn R Programming

evgam (version 0.1.1)

summary.evgam: Summary method for a fitted evgam object

Description

Summary method for a fitted evgam object

Usage

# S3 method for evgam
summary(object, ...)

# S3 method for summary.evgam print(x, ...)

Arguments

object

a fitted evgam object

...

not used

x

a summary.evgam object

Value

A summary.evgam object

Details

The key part of summary.evgam is p-values for smooths. The tests use code directly taken from mgcv 1.8-14. This is to avoid use of mgcv:::... . Tests implement the method of Wood (2013).

References

Wood, S. N., (2013) On p-values for smooth components of an extended generalized additive model, Biometrika 100(1) 221--228

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(evgam)
data(COprcp)
COprcp$year <- format(COprcp$date, "%Y")
COprcp_gev <- aggregate(prcp ~ year + meta_row, COprcp, max)
COprcp_gev <- cbind(COprcp_gev, COprcp_meta[COprcp_gev$meta_row,])
fmla_gev <- list(prcp ~ s(lon, lat, k=30) + s(elev, bs="cr"), ~ s(lon, lat, k=20), ~ 1)
m_gev <- evgam(fmla_gev, data=COprcp_gev, family="gev")
summary(m_gev)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab