anlz_perchg {wqtrends} | R Documentation |
Estimate percent change trends from GAM results for selected time periods
Description
Estimate percent change trends from GAM results for selected time periods
Usage
anlz_perchg(mod, baseyr, testyr)
Arguments
mod |
input model object as returned by |
baseyr |
numeric vector of starting years |
testyr |
numeric vector of ending years |
Details
Working components of this function were taken from the gamDiff function in the baytrends package.
Value
A data frame of summary results for change between the years.
Examples
library(dplyr)
# data to model
tomod <- rawdat %>%
filter(station %in% 34) %>%
filter(param %in% 'chl')
mod <- anlz_gam(tomod, trans = 'log10')
anlz_perchg(mod, baseyr = 1990, testyr = 2016)
[Package wqtrends version 1.4.2 Index]