postshock: An R Package for Donor-Adjusted Forecasting After Structural Shocks
Qiyang WangDaniel J. Eck
Qiyang Wang
Daniel J. Eck
+2
We present the postshock R package, an implementation and extension of a donor-based framework for forecasting after a known structural shock when the target response of interest has not yet been observed. The package estimates shock effects from historical donor episodes, balances donors on specified matching features, and transfers that adjustment to a target-series forecast, with integrated workflows for conditional mean forecasting via ARIMA and ARIMAX and conditional variance forecasting via GARCH-X models. It further offers structured donor pools, control-shock regressors, automated GARCH-X order selection, processed data objects, and reproducible empirical workflows.

arXiv ·
· October 8, 2026