| Title: | Empirical Extrapolation of Time Feature Patterns |
|---|---|
| Description: | Empirically extrapolates recurring patterns in numeric and categorical time-feature sequences. Candidate windows are selected by similarity, validated with rolling-origin evaluation, and summarized as forecast distributions. The runtime package uses only base R. |
| Authors: | Giancarlo Vercellino [aut, cre] |
| Maintainer: | Giancarlo Vercellino <[email protected]> |
| License: | GPL-3 |
| Version: | 2.0.0 |
| Built: | 2026-10-07 13:19:20 UTC |
| Source: | https://github.com/cran/naive |
Calls 'naive_fit()' using the v1-compatible argument list.
Empirical Extrapolation of Time Feature Pattern
naive( df, seq_len = NULL, ci = 0.8, smoother = FALSE, cover = NULL, stride = NULL, method = NULL, location = NULL, n_windows = 10, n_samp = 30, dates = NULL, error_scale = "naive", error_benchmark = "naive", seed = 42 )naive( df, seq_len = NULL, ci = 0.8, smoother = FALSE, cover = NULL, stride = NULL, method = NULL, location = NULL, n_windows = 10, n_samp = 30, dates = NULL, error_scale = "naive", error_benchmark = "naive", seed = 42 )
df |
Numeric or categorical data frame. |
seq_len |
Forecast horizon. |
ci |
Prediction interval coverage. |
smoother |
Compatibility argument. |
cover |
Similarity-window coverage. |
stride |
Window stride. |
method |
Distance method. |
location |
Location statistic. |
n_windows |
Number of validation windows. |
n_samp |
Number of candidate configurations. |
dates |
Optional dates. |
error_scale |
Compatibility metric scale. |
error_benchmark |
Compatibility metric benchmark. |
seed |
Random seed. |
Maintainer: Giancarlo Vercellino [email protected]
Empirical extrapolation of time-feature patterns
naive_fit( df, seq_len = NULL, ci = 0.8, n_windows = 10, n_samp = 30, seed = 42, ... )naive_fit( df, seq_len = NULL, ci = 0.8, n_windows = 10, n_samp = 30, seed = 42, ... )
df |
Numeric or categorical data frame. |
seq_len |
Forecast horizon. |
ci |
Prediction interval coverage. |
n_windows |
Number of validation windows. |
n_samp |
Number of candidate configurations. |
seed |
Random seed. |
... |
Compatibility arguments: 'cover', 'stride', 'method', 'location', 'dates', 'error_scale', 'error_benchmark', and 'smoother'. |
An object of class 'naive_forecast'.
Generate an empirical forecast
naive_forecast( df, horizon, ci = 0.8, cover = 0.5, stride = 1, method = "euclidean", location = "median", dates = NULL, seed = 42 )naive_forecast( df, horizon, ci = 0.8, cover = 0.5, stride = 1, method = "euclidean", location = "median", dates = NULL, seed = 42 )
df |
Numeric or categorical data frame. |
horizon |
Forecast horizon. |
ci |
Prediction interval coverage. |
cover |
Similarity-window coverage. |
stride |
Window stride. |
method |
Distance method. |
location |
Location statistic. |
dates |
Optional dates. |
seed |
Random seed. |
Calculate basic forecast errors
naive_metrics(actual, predicted)naive_metrics(actual, predicted)
actual |
Actual values. |
predicted |
Predicted values. |
A data frame with with daily with daily prices for some Big Tech Companies since March 2017.
time_featurestime_features
A data frame with 6 columns and 1336 rows.
finance.yahoo.com