anlz_prd {wqtrends}R Documentation

Get predicted data from fitted GAMs across period of observation

Description

Get predicted data from fitted GAMs across period of observation

Usage

anlz_prd(mod, annual = FALSE)

Arguments

mod

input model object as returned by anlz_gam

annual

logical indicating if predictions only for the cont_year smoother are returned

Value

a data.frame with predictions

Examples

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)

[Package wqtrends version 1.4.2 Index]