trendAnchor {RGAP} | R Documentation |
Trend anchor
Description
Computes the anchored trend given a fitted object of class NAWRUfit
,
TFPfit
, or KuttnerFit
.
Usage
trendAnchor(fit, anchor = NULL, h = NULL, returnFit = FALSE)
Arguments
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 |
Value
A fitted object if returnFit = TRUE
or a time series with the anchored
trend.
Examples
# 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)
[Package RGAP version 0.1.1 Index]