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:Tim Ginker [aut, cre]

cforecast_0.1.1.tar.gz
cforecast_0.1.1.zip(r-4.7-any)cforecast_0.1.1.zip(r-4.6-any)cforecast_0.1.1.zip(r-4.5-any)
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

Datasets:

On CRAN:

Conda:

forecastingscenario-analysistime-seriestime-series-analysistime-series-forecastingtime-series-predictionvector-autoregression

4.66 score 13 stars 8 scripts 329 downloads 5 exports 31 dependencies

Last updated from:b8f15041df. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK120
source / vignettesOK189
linux-releaseOK122
macos-releaseOK211
macos-oldrelOK191
windows-develOK86
windows-releaseOK114
windows-oldrelOK98
wasm-releaseOK96

Exports:cforecastcforecast_compositionfct_weightsstate_space_representationvariable_importance_stat

Dependencies:BVARclidigestdplyrFKFgenericsglueKFASlatticelifecyclelmtestmagrittrMASSmiscToolsmvtnormnlmepillarpkgconfigR6rlangsandwichstrucchangetibbletidyselecturcautf8varsvctrswexwithrzoo