anlz_backtrans {wqtrends} | R Documentation |
Back-transform response variable
Description
Back-transform response variable after fitting GAM
Usage
anlz_backtrans(dat)
Arguments
dat |
input data with |
Details
dat
can be output from anlz_trans
or anlz_prd
Value
dat
with the value
column back-transformed using info from the trans
column
Examples
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)
[Package wqtrends version 1.4.2 Index]