Builds the trend model named by tr (a trend() object) from its own class defaults, then
evaluates it at index. tr's parameter field (which distribution parameter the trend
attaches to) is not used here – this verb evaluates the trend model on its own, the same way
set_trend_model()'s type dispatch does before it further data-drives the parameter values
from a live model's distribution and data (this verb has no such model to consult, so a
tr with no explicit values predicts from the trend's own zero-valued class defaults).
Arguments
- tr
a
corehydro_trendobject fromtrend().- index
a 1-based numeric vector of time indices to evaluate at.
Value
a numeric vector, the same length as index.
trend_parameters() returns a named numeric vector, the trend's own model-parameter
values (see model_parameter()) at their class defaults, adjusted by any explicit values
on tr.