residuals.bHP | R Documentation |
Extract the final cycle component for class bHP
.
## S3 method for class 'bHP' residuals(x)
x |
an object of class |
the estimated cycle component
lam <- 100 # tuning parameter for the annual data data(IRE) # load the data 'IRE' # raw HP filter bx_HP <- BoostedHP(IRE, lambda = lam, iter = FALSE) # by ADF bx_ADF <- BoostedHP(IRE, lambda = lam, iter = TRUE, stopping = "adf", sig_p = 0.050) # return the final trend component residuals(bx_HP) residuals(bx_ADF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.