Adds new inputs to transfer function or univariate models.
# S3 method for tfm
setinputs(
mdl,
xreg = NULL,
inputs = NULL,
y = NULL,
envir = parent.frame(),
...
)setinputs(mdl, ...)
# S3 method for um
setinputs(mdl, xreg = NULL, inputs = NULL, y = NULL, envir = NULL, ...)
A tfm object.
A um or tfm object.
Optional matrix of exogenous regressors.
Optional list of tf objects (only for tfm).
Optional ts object for output series.
Environment for evaluation. Default is calling environment.
Additional arguments passed to model constructor.
For tfm objects: If the model already has inputs of the same type,
new ones are appended (combined). The model is re-fitted by default unless
fit = FALSE.
um, tfm