powered by
Obtain either fitted values or residuals from a fitted Hamilton filter.
# S4 method for hfilter fitted(object, ...)# S4 method for hfilter residuals(object, ...)
# S4 method for hfilter residuals(object, ...)
A time series object of class "ts" is returned.
"ts"
an object of class "hfilter", i.e. generated by a call to hamilton_filter.
"hfilter"
hamilton_filter
currently without further use; implemented for compatibility.
Dominik Schulz (Research Assistant) (Department of Economics, Paderborn University), Author and Package Creator
Obtain the fitted and the residual values from the result of a fitted Hamilton filter. The name of the method indicates, what is returned.
est <- hamilton_filter(log(EXPENDITURES)) residuals(est) fitted(est)
Run the code above in your browser using DataLab