powered by
Get predicted data from fitted GAMs across period of observation
anlz_prd(mod, annual = FALSE)
a data.frame with predictions
data.frame
input model object as returned by anlz_gam
anlz_gam
logical indicating if predictions only for the cont_year smoother are returned
cont_year
library(dplyr) # data to model tomod <- rawdat %>% filter(station %in% 34) %>% filter(param %in% 'chl') %>% filter(yr > 2015) mod <- anlz_gam(tomod, trans = 'log10') anlz_prd(mod)
Run the code above in your browser using DataLab