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)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

Datasets:

On CRAN:

Conda:

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

4.66 score 13 stars 530 downloads 5 exports 31 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64OK112
source / vignettesOK250
linux-release-x86_64OK152
macos-release-arm64OK105
macos-oldrel-arm64OK121
windows-develOK91
windows-releaseOK87
windows-oldrelOK90
wasm-releaseOK109

Exports:cforecastcforecast_compositionfct_weightsstate_space_representationvariable_importance_stat

Dependencies:BVARclidigestdplyrFKFgenericsglueKFASlatticelifecyclelmtestmagrittrMASSmiscToolsmvtnormnlmepillarpkgconfigR6rlangsandwichstrucchangetibbletidyselecturcautf8varsvctrswexwithrzoo