Package: cforecast 0.1.1

Tim Ginker
cforecast: Conditional Forecasting and Scenario Analysis Using VAR Models
Provides tools for interpretable conditional forecasting and scenario analysis in reduced-form vector autoregressive (VAR) models. Implements a Kalman smoothing framework to generate forecasts under path restrictions on selected variables. The package enables decomposition of conditional forecasts into variable-specific contributions, and extraction of observation weights. It also computes measures of overall and marginal variable importance to enhance the economic interpretation of forecast revisions. The framework is structurally agnostic and suited for policy analysis, stress testing, and macro-financial applications. The methodology is described in more detail in Caspi and Ginker (2026) <doi:10.13140/RG.2.2.25225.51040>.
Authors:
cforecast_0.1.1.tar.gz
cforecast_0.1.1.zip(r-4.7)cforecast_0.1.1.zip(r-4.6)cforecast_0.1.1.zip(r-4.5)
cforecast_0.1.1.tgz(r-4.6-any)cforecast_0.1.1.tgz(r-4.5-any)
cforecast_0.1.1.tar.gz(r-4.7-any)cforecast_0.1.1.tar.gz(r-4.6-any)
cforecast_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cforecast/json (API)
| # Install 'cforecast' in R: |
| install.packages('cforecast', repos = c('https://timginker.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/timginker/cforecast/issues
- DCOILWTICO_level - Quarterly Average WTI Crude Oil Price
- fred_macro - U.S. Macroeconomic Dataset from FRED
forecastingscenario-analysistime-seriestime-series-analysistime-series-forecastingtime-series-predictionvector-autoregression
Last updated from:cf6bfac3d4. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 112 | ||
| source / vignettes | OK | 250 | ||
| linux-release-x86_64 | OK | 152 | ||
| macos-release-arm64 | OK | 105 | ||
| macos-oldrel-arm64 | OK | 121 | ||
| windows-devel | OK | 91 | ||
| windows-release | OK | 87 | ||
| windows-oldrel | OK | 90 | ||
| wasm-release | OK | 109 |
Exports:cforecastcforecast_compositionfct_weightsstate_space_representationvariable_importance_stat
Dependencies:BVARclidigestdplyrFKFgenericsglueKFASlatticelifecyclelmtestmagrittrMASSmiscToolsmvtnormnlmepillarpkgconfigR6rlangsandwichstrucchangetibbletidyselecturcautf8varsvctrswexwithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Conditional Forecast with VAR or BVAR | cforecast |
| Compute Conditional Forecast Composition | cforecast_composition |
| Quarterly Average WTI Crude Oil Price (Level) | DCOILWTICO_level |
| Conditional Forecast Variable Weights | fct_weights |
| U.S. Macroeconomic Dataset from FRED | fred_macro |
| State Space Representation | state_space_representation |
| Compute Variable Importance for Stationary VAR | variable_importance_stat |