trendAnchor | R Documentation |
Computes the anchored trend given a fitted object of class NAWRUfit
,
TFPfit
, or KuttnerFit
.
trendAnchor(fit, anchor = NULL, h = NULL, returnFit = FALSE)
fit |
An object of class |
anchor |
A numeric specifying the anchor value. If unspecified, |
h |
An integer specifying the anchor horizon in the frequency of the underlying model.
If unspecified, |
returnFit |
A logical. If |
A fitted object if returnFit = TRUE
or a time series with the anchored
trend.
# define nawru model for France
data("gap")
tsList <- amecoData2input(gap$France)
model <- NAWRUmodel(tsl = tsList)
# estimate nawru model
f <- fit(model = model)
# compute anchored nawru
anchoredNawru <- trendAnchor(fit = f, anchor = 6.5, h = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.