| tfm | R Documentation |
Creates and optionally fits a multiple-input transfer function model. A transfer function model relates an output time series to one or more input series (transfer functions), exogenous regressors, and a noise model.
tfm(
output = NULL,
xreg = NULL,
inputs = NULL,
noise,
fit = TRUE,
new.name = TRUE,
envir = parent.frame(),
...
)
output |
A numeric vector or |
xreg |
A numeric matrix or |
inputs |
A list of transfer function objects of class |
noise |
An object of class |
fit |
Logical. If |
new.name |
Logical. Internal use. If |
envir |
Environment in which the function arguments are evaluated.
If |
... |
Additional arguments passed to |
All series must have the same frequency. Input series must span at least
the same period as output. The function applies differencing and Box-Cox
transformation as specified in noise.
Object of class tfm with components: output, xreg, inputs,
noise, param, kx, k, optim, method, and call.
Box, G. E., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Wiley.
tf, um, fit.tfm
## Not run:
data(seriesJ)
Y <- seriesJ$Y - mean(seriesJ$Y)
X <- seriesJ$X - mean(seriesJ$X)
umx <- um(X, ar = 3)
umy <- fit(umx, Y)
tfx <- tfest(Y, X, delay = 3, p = 2, q = 2, um.x = umx, um.y = umy)
tfmy <- tfm(Y, inputs = tfx, noise = um(ar = 2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.