setinputs function

setinputs adds new inputs into a transfer function model.

setinputs adds new inputs into a transfer function model.

## S3 method for class 'tfm' setinputs( mdl, xreg = NULL, inputs = NULL, y = NULL, envir = parent.frame(), ... ) setinputs(mdl, ...) ## S3 method for class 'um' setinputs(mdl, xreg = NULL, inputs = NULL, y = NULL, envir = NULL, ...)

Arguments

  • mdl: a umm or tfm object.
  • xreg: a matrix of inputs.
  • inputs: a list of tf objects.
  • y: an optional ts object.
  • envir: an environment.
  • ...: other arguments.

Returns

A tfm object.