AICc: AICc from gam or lm object

Description Usage Arguments Value Examples

View source: R/AICc.r

Description

Helper function compute AICc from a gam or lm object

Usage

1
AICc(object)

Arguments

object

A model returned by a gam or lm fit

Value

an AICc value

Examples

1
2
3
4
5
# some simulated data with one cov
library(mgcv)
dat <- gamSim(6,n=20,scale=.5)[,1:2]
m <- gam(y~s(x0), data=dat)
AICc(m)

eeholmes/SardineForecast documentation built on July 17, 2021, 2:56 a.m.