View source: R/GAM_smoothing.R
GAM_smoothing | R Documentation |
This function uses a GAM to smooth a numeric vector
GAM_smoothing(values, years = 1:length(values), plot = FALSE, ...)
values |
A numeric vector that will be smoothed |
years |
Optional, the years that |
plot |
If |
... |
other arguements passed to |
The smoothed/predicted values are returned as well as the model object used for making predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.