gamCheck: Perform diagnostics for a fitted gam model

Description Usage Arguments Examples

Description

Perform diagnostics for a fitted gam model

Usage

1
gamCheck(b, k.sample = 5000, k.rep = 200, print = TRUE)

Arguments

b

A fitted gam object as produced by gam().

k.sample

Newmeric Above this k testing uses a random sub-sample of data.

k.rep

Numeric How many re-shuffles to do to get p-value for k testing.

print

logical Whether or not print result

Examples

1
2
3
4
5
library(mgcv)
set.seed(0)
dat <- gamSim(1,n=200)
b<-gam(y~s(x0)+s(x1)+s(x2)+s(x3),data=dat)
gamCheck(b)

cardiomoon/ggGam documentation built on May 2, 2020, 9:58 a.m.