Description Usage Arguments Value Examples
jd_checklast is a straightforward implementation of Terror, a popular tool for detecting anomalies in the last observation(s). This function compares the out of sample forecasts of the series with the actual figures.It returns the difference in function of the standard error of the forecast.
1 | jd_checklast(s,last, method,absoluteErrors)
|
s |
series |
last |
number of observations (default=1) |
method |
tramo method used to compute the forecast (default= "TRfull") |
absoluteErrors |
return result as absolute error (vs relative error; default= FALSE) |
returns a numeric vector
1 2 3 4 | data("retail")
myseries <- retail$AutomobileDealers
checkLastObservations <-jd_checklast(myseries,4)
checkLastObservations_abs <-jd_checklast(myseries,4,absoluteErrors = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.