GACE: Generalized Adaptive Capped Estimator

Introduction

The GACE package provides a fast, deterministic, and interpretable forecasting method based on hybrid growth signals and asymmetric caps. It supports weekly, monthly, quarterly, and yearly data and allows users to choose manual or automatic cap selection.

This vignette illustrates basic usage of the package.

Basic example

library(GACE)

We begin by generating a simple monthly time series:

set.seed(123)
y <- ts(rnorm(36, 100, 10), frequency = 12)

Now we produce a 12-month forecast:

fc <- gace_forecast(
  df = y,
  periods = 12,
  freq = "month",
  seasonal = TRUE
)

head(fc)
#>   period     value       type
#> 1      1  94.39524 historical
#> 2      2  97.69823 historical
#> 3      3 115.58708 historical
#> 4      4 100.70508 historical
#> 5      5 101.29288 historical
#> 6      6 117.15065 historical

Plotting

plot_gace(fc)

How it works

GACE blends three intuitive growth signals:

  • year-over-year growth
  • prior-period growth
  • rolling-window growth

It then applies fixed or adaptive asymmetric caps to ensure non-explosive forecasts and optional seasonal scaling.

Conclusion

GACE provides a practical, transparent forecasting alternative for business and applied analytics.
For more details, refer to the function documentation.