| fit.tfm | R Documentation |
Estimates the parameters of a transfer function model of class tfm by
(conditional or exact) maximum likelihood.
## S3 method for class 'tfm'
fit(
mdl,
y = NULL,
method = c("exact", "cond"),
optim.method = "BFGS",
show.iter = FALSE,
fit.noise = TRUE,
envir = NULL,
...
)
mdl |
An object of class |
y |
Optional |
method |
Character string specifying likelihood method: "exact" for exact maximum likelihood or "cond" for conditional maximum likelihood. Default is "exact". |
optim.method |
Character. Optimization method passed to
|
show.iter |
Logical. If |
fit.noise |
Logical. If |
envir |
Environment in which the function arguments are evaluated. If
|
... |
Additional arguments. |
An updated object of class tfm containing fitted parameters,
estimated innovation variance, and optimization details.
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), fit = FALSE)
tfmy_fit <- fit(tfmy)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.