fitted,hfilter-method | R Documentation |
Obtain either fitted values or residuals from a fitted Hamilton filter.
## S4 method for signature 'hfilter'
fitted(object, ...)
## S4 method for signature 'hfilter'
residuals(object, ...)
object |
an object of class |
... |
currently without further use; implemented for compatibility. |
Obtain the fitted and the residual values from the result of a fitted Hamilton filter. The name of the method indicates, what is returned.
A time series object of class "ts"
is returned.
Dominik Schulz (Research Assistant) (Department of Economics, Paderborn
University),
Author and Package Creator
est <- hamilton_filter(log(EXPENDITURES))
residuals(est)
fitted(est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.