GAM_smoothing: GAM smoothing

Description Usage Arguments Value

Description

This function uses a GAM to smooth a numeric vector

Usage

1
GAM_smoothing(values, years = 1:length(values), plot = FALSE, ...)

Arguments

values

A numeric vector that will be smoothed

plot

If TRUE a plot is generated showing the smoothed spline.

year

Optional, the years that value corresponds to as a numeric vector.

Value

The smoothed/predicted values are returned as well as the model object used for making predictions.


BiologicalRecordsCentre/BRCindicators documentation built on May 6, 2019, 7:55 a.m.