postshock
0.2.0Donor-Adjusted Post-Shock Forecasting
0packages depend
58downloads / year
77.9%test coverage
12/13checks pass
Overview
About
Implements donor-adjusted methods for forecasting conditional means and variances after structural shocks. Historical donor episodes are weighted using covariates observed before each shock, and their estimated post-shock effects are combined with forecasts from a target-series model. The methods build on Lin and Eck (2021) doi:10.1016/j.ijforecast.2021.03.010. The package supports donor balancing weights, structured donor pools, autoregressive integrated moving average models, and generalized autoregressive conditional heteroscedasticity models with external regressors.
Install
Health
CRAN checks
1NOTE12OK
Failing flavors
- NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 4.2 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 1.14
77.9%
Coverage · measured lines
100%
Documentation · exports
6
Dependencies · direct
Check history
- NOTE2026-08-0111 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-07-287 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation
READMEYes · 410 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
- Examples that run
- 20%
- Documented parameters
- 93%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
58
CRAN downloads in the past year
Rank #24,636 · ~0/day · ~5/mo
Daily download trend is not available in this view yet.
5830 days
5890 days
581 year
Also on3 r2u
Dependencies
Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Nothing depends on this yet.
Code & Tests
People & History
People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author
Package Timeline
1 release. R releases are shown for context.
- 0.2.0Latest2026-07-27 · current release
- RR 4.6.0 released · 2026-04-24
0 of 2 selectedCompare selected
Package metadata
- First published
- 2026-07-27
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 86 KB / 4 files
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet