R/predict.hydromad.R
predict.hydromad.Rd
Generate simulated time series from Hydromad model objects.
an object of class hydromad
.
a ts
-like object containing a new time series
dataset (replacing the original DATA
argument given to the
hydromad
function).
selects either the SMA or routing model, or both models (the
default). Note that if which = "routing"
, then newdata
is
treated as the effective rainfall (U).
any unmatched arguments will generate an error.
if TRUE
, return the entire time series for which data
exists. Otherwise, the warmup period (specified as an argument to
hydromad
or update
) is stripped off.
if feasible.set
is TRUE, then many
simulations will be generated, using all parameter sets in the
feasible set. This must have been previously specified using
defineFeasibleSet
. If glue.quantiles
is NULL then all
the simulated time series are returned. If it is c(0,1)
then the
overall bounds (minimum and maximum at each time step) are returned.
Otherwise the specified quantiles are estimated using GLUE-type weighting.
groups
is an optional grouping variable, of the
same length as the observed data in object
, used to aggregate the
observed and fitted time series. The function FUN
is applied to each
group.
passed to the SMA simulation function, to return state variables.
passed to the routing simulation function, to return flow components.
simulated time series.
hydromad
, update.hydromad