anlz_backtrans {wqtrends} | R Documentation |
Back-transform response variable after fitting GAM
anlz_backtrans(dat)
dat |
input data with |
dat
can be output from anlz_trans
or anlz_prd
dat
with the value
column back-transformed using info from the trans
column
library(dplyr)
tomod <- rawdat %>%
filter(station %in% 34) %>%
filter(param %in% 'chl')
dat <- anlz_trans(tomod, trans = 'log10')
backtrans <- anlz_backtrans(dat)
head(backtrans)
mod <- anlz_gam(tomod, trans = 'log10')
dat <- anlz_prd(mod)
backtrans <- anlz_backtrans(dat)
head(backtrans)