Description Usage Arguments Author(s) See Also
View source: R/detect-changepoint.R
This function looks for the 'optimal' number of recent days to exclude from
the temporal trend fitting in asmodee. The procedure selects
the value of k
which maximises the sum if i) the number of non-outliers in
training set (before the last k
points) ii) the number of outliers in the
last k
points. Note that for each value of k
investigated, model
selection is performed as described in ?asmodee
.
1 2 3 4 5 6 7 8 9 10 | detect_changepoint(
data,
models,
date_index,
alpha = 0.05,
max_k = 7,
method = trendeval::evaluate_resampling,
include_warnings = FALSE,
...
)
|
data |
A |
models |
A list of |
date_index |
The name of a variable corresponding to time, quoted or not. |
alpha |
The alpha threshold to be used for the prediction interval calculation; defaults to 0.05, i.e. 95% prediction intervals are calculated. |
max_k |
An |
method |
A function used to evaluate model fit. Current choices are
|
include_warnings |
Include results in output that triggered warnings but
not errors. Defaults to |
... |
Further arguments passed to |
Thibaut Jombart
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.