| mFilter-methods | R Documentation |
Common methods for all mFilter objects usually created by the
mFilter function.
## S3 method for class 'mFilter'
residuals(object, ...)
## S3 method for class 'mFilter'
fitted(object, ...)
## S3 method for class 'mFilter'
print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'mFilter'
plot(x, reference.grid = TRUE, col = "steelblue", ask=interactive(), ...)
## S3 method for class 'mFilter'
summary(object, digits = max(3, getOption("digits") - 3), ...)
object, x |
an object of class |
digits |
number of digits used for printing (see |
col |
color of the graph (see |
ask |
logical. if |
reference.grid |
logical. if true grid lines are drawn. |
... |
further arguments passed to or from other methods. |
for residuals and fitted a univariate time series;
for plot, print, and summary the "mFilter"
object.
Mehmet Balcilar, mehmet@mbalcilar.net
mFilter for the function that returns an objects of class "mFilter".
Other functions which return objects of class "mFilter" are
bkfilter,
bwfilter,
cffilter,
bkfilter,
trfilter.
## library(mFilter) data(unemp) opar <- par(no.readonly=TRUE) unemp.hp <- mFilter(unemp,filter="HP") # Hodrick-Prescott filter print(unemp.hp) summary(unemp.hp) residuals(unemp.hp) fitted(unemp.hp) plot(unemp.hp) par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.