augment.gam: Augment a gam model with regression diagnostic information

Description Usage Arguments Value Examples

View source: R/augment_gam.R

Description

Augment a gam model with regression diagnostic information

Usage

1
2
## S3 method for class 'gam'
augment(model)

Arguments

model

fitted model object from mgcv::gam()

Value

a dataframe with the input data, fitted values, and regression diagnostics

Examples

1
2
3
4
5
6
x <- mgcv::gam(Sepal.Width ~ s(Petal.Length), data = iris)
augment(x)

dat <- mgcv::gamSim(1,n=400,dist="binary",scale=.33)
lr.fit <- mgcv::gam(y~s(x0)+s(x1)+s(x2)+s(x3),family=binomial,
              data=dat,method="REML")

atyre2/NRES803 documentation built on Sept. 1, 2021, 5:11 a.m.