powered by
Get predicted data from fitted GAMs across period of observation, every day
anlz_prdday(mod)
a data.frame with predictions
data.frame
input model object as returned by anlz_gam
anlz_gam
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_prdday(mod)
Run the code above in your browser using DataLab