Get the scale parameters for predicted values of the response variable, only applies to tidalmean
objects.
resscls(dat_in, ...)
# S3 method for tidalmean
resscls(dat_in, dat_pred = NULL, ...)
input tidalmean object
arguments passed to or from other methods
optional data to predict using the interpolation grids in dat_in, defaults to observed data in dat_in
if not supplied
Appends columns to the data.frame for the associated scale value for the predicted values. A column is appended to the dat_in
object, named `scls'.
This function is used after wrtds
to get scale parameters for predicted values of the response variable from the interpolation grids. The values are based on a bilinear interpolation of the four predicted response values at two salinity/flow and two date values nearest to the observed salinity/flow and date values to predict.
##
# load a tidalmean object
data(tidobjmean)
# get predicted values
res <- resscls(tidobjmean)