Learn R Programming

wqtrends (version 1.5.1)

anlz_prd: 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)

Value

a data.frame with predictions

Arguments

mod

input model object as returned by anlz_gam

annual

logical indicating if predictions only for the cont_year smoother are returned

Examples

Run this code
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