predict.bHP | R Documentation |
Extract the final trend component for class bHP
.
## S3 method for class 'bHP' predict(x)
x |
an object of class |
the estimated trend 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 predict(bx_HP) predict(bx_ADF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.