Skip to content

postshock

0.2.0

Donor-Adjusted Post-Shock Forecasting

0packages depend
58downloads / year
77.9%test coverage
12/13checks pass

Overview

About
Maintained by Qiyang WangFirst published 2026-07-271 releasesCRAN page ↗

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-01
    11 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-28
    7 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.
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
Package Timeline

1 release. R releases are shown for context.

  • 0.2.0Latest
    2026-07-27 · current release
  • R
    R 4.6.0 released · 2026-04-24

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
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy