mix_models: Calculate loads from a model list

Description Usage Arguments Value

View source: R/mix_models.R

Description

Calculate loads from a model list

Usage

1
2
3
4
mix_models(model_list, time_series, datetime_heading = NULL,
  flow_heading = NULL, retransformation = NULL,
  bias_correction_factor = NULL, conversion_factor = 1,
  combine = FALSE)

Arguments

model_list

a list of modelEquation objects, see modelEquation

time_series

a time series of data including the datetime and flow

datetime_heading

the name of the datetime heading

flow_heading

the name of the flow heading

retransformation

a list of functions used to retransform the model calculations before using them to calculate the load. NULL if no retransformation needed. Should be the same length as model list

bias_correction_factor

a vector of bias correction factors to multiply model calculations by after retransforming the model, if applicable. Should be the same ling as model_list

conversion_factor

the conversion factor to use

combine

a logical indicating whether to combine the models, favoring the models in the order of model_list

Value

a data frame of loads calculated from each model and a column mixing the loads using the order of the model_list for preference.


PatrickEslick/MixedModelLoads documentation built on Nov. 10, 2019, 4:48 p.m.