Package: tidyMacro 1.1.2

Muhsin Ciftci

tidyMacro: Structural Vector Autoregressions and Local Projections via 'C++'

Estimation and identification of structural vector autoregressions and local projections, with a compiled 'C++' backend. Shocks can be identified by short-run (recursive) restrictions, long-run restrictions following Blanchard and Quah (1989) <https://www.jstor.org/stable/1827924>, maximum forecast error variance share following Uhlig (2005) <doi:10.1016/j.jmoneco.2004.05.007>, external instruments (proxy SVAR) following Mertens and Ravn (2013) <doi:10.1257/aer.103.4.1212> and Kaenzig (2021) <doi:10.1257/aer.20190964>, heteroskedasticity across regimes, and sign or narrative sign restrictions. Local projections follow Jorda (2005) <doi:10.1257/0002828053828518> and cover instrumental variables, state-dependent and nonlinear specifications, panel data as in Mian, Sufi and Verner (2017) <doi:10.1093/qje/qjx017>, and the difference-in-differences estimator of Dube, Girardi, Jorda and Taylor (2025) <doi:10.1002/jae.70000>. Inference uses residual, wild and moving-block bootstraps, heteroskedasticity and autocorrelation consistent standard errors, and one-way or two-way cluster-robust standard errors.

Authors:Muhsin Ciftci [aut, cre, cph]

tidyMacro_1.1.2.tar.gz
tidyMacro_1.1.2.zip(r-4.7-x86_64)tidyMacro_1.1.2.zip(r-4.7-arm64)tidyMacro_1.1.2.zip(r-4.6-x86_64)tidyMacro_1.1.2.zip(r-4.6-arm64)
tidyMacro_1.1.2.tar.gz(r-4.7-arm64)tidyMacro_1.1.2.tar.gz(r-4.7-x86_64)tidyMacro_1.1.2.tar.gz(r-4.6-arm64)tidyMacro_1.1.2.tar.gz(r-4.6-x86_64)
tidyMacro_1.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
tidyMacro/json (API)

# Install 'tidyMacro' in R:
install.packages('tidyMacro', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/muhsinciftci/tidymacro/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

openblascppopenmp

1.95 score 18 scripts 65 exports 31 dependencies

Last updated from:b20b54858e. Checks:8 OK, 2 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK379
linux-devel-x86_64OK370
source / vignettesOK310
linux-release-arm64OK301
linux-release-x86_64OK382
windows-devel-arm64ERROR507
windows-devel-x86_64OK432
windows-release-arm64ERROR575
windows-release-x86_64OK294
wasm-releaseOK282

Exports:fAICBICfBootstrapBQfBootstrapCholfBootstrapCholCorrectedfBootstrapHDIVfBootstrapHeterofBootstrapIVInvertiblefBootstrapIVMBBfBootstrapIVRecoverfBootstrapMaxfBootstrapMaxCorrectedfBootstrapUhligfBootstrapUhligCorrectedfBootstrapVARfBQIRFfCheckRestrictionsfCheckStabilityfCholeskyIRFfCompanionMatrixfFEVDCholfFEVDIVfGenerateQfGenerateVARDatafGetBandsfGetShockfHDIVfHDShockfHeteroIRFfHistDecfIRFfLagMakerMatrixfLPfLPDIDfLPIVfLPPanelfMaxIRFfMBBVARfMSWfNLLPfOLSfPlotHistDecfPlotIRFfPlotLPDIDfPlotNLLPfPlotVarDecfPolyConvolvefSetTidyMacroThemefSignRestrfSpectralFEVDfSVARStepsfTestInvertibilityfTestRecoverabilityfThemeTidyMacrofUhligIRFfUhligMaxSharefVARfVARXfWoldIRFscale_color_tidyMacroscale_colour_tidyMacroscale_fill_tidyMacrotidy.fLPtidy.fLPPaneltidy.fNLLPtidyMacro_colors

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
tidyMacro: Structural Vector Autoregressions and Local Projections via 'C++'tidyMacro-package tidyMacro
Arias, Caldara & Rubio-Ramirez (2019) Data with the Romer-Romer InstrumentACR2019
Antolin-Diaz & Rubio-Ramirez (2018) DataADRR2018
US Banking Deregulation and the Labor ShareBankingDeregulation
Beaudry & Portier (2014) DataBeaudryPortier2014
Bloom (2009) DataBloom2009
Cesa-Bianchi and Sokol (2022) DataCBS2022
Democracy and Growth (ANRR / DDCG Panel)DemocracyGrowth
Determine Optimal Lag Order for VAR Model Using Information CriteriafAICBIC
Bootstrap Blanchard-Quah Long-Run Identified Impulse Response FunctionsfBootstrapBQ
Bootstrap Cholesky Identified Impulse Response FunctionsfBootstrapChol
Bootstrap Bias-Corrected Cholesky Identified Impulse Response FunctionsfBootstrapCholCorrected
Bootstrap Confidence Bands for the IV Historical DecompositionfBootstrapHDIV
MBB Bootstrap for Heteroskedasticity-Based VAR IdentificationfBootstrapHetero
Bootstrap IRFs for the Invertible Case (Wild Bootstrap)fBootstrapIVInvertible
Bootstrap IV Impulse Response Functions using Moving Block BootstrapfBootstrapIVMBB
Bootstrap IRFs for the Recoverable Non-Invertible CasefBootstrapIVRecover
Bootstrap Long-Run Maximum-Response Impulse ResponsesfBootstrapMax fBootstrapMaxCorrected
Bootstrap Uhlig Maximum-Share Impulse ResponsesfBootstrapUhlig fBootstrapUhligCorrected
Bootstrap VAR ModelfBootstrapVAR
Compute Blanchard-Quah (BQ) Impulse Response FunctionsfBQIRF
Check Sign Restrictions for One ShockfCheckRestrictions
Check VAR StabilityfCheckStability
Compute Cholesky Impulse Response FunctionsfCholeskyIRF
Compute VAR Companion MatrixfCompanionMatrix
Forecast Error Variance Decomposition for Cholesky-Identified VARsfFEVDChol
Forecast Error Variance Decomposition for IV-Identified ShocksfFEVDIV
Draw a Random Orthonormal Matrix (RZW 2010)fGenerateQ
Generate VAR DatafGenerateVARData
Compute Confidence Bands from Bootstrap IRF CubefGetBands
Recover Structural Shock Series (Stock-Watson 2018)fGetShock
Companion-Form Historical Decomposition for IV-Identified ShockfHDIV
Historical Decomposition of a Structural VARfHDShock
Heteroskedasticity-Based VAR Identification (Proxy IV, Treatment Months)fHeteroIRF
Historical Decomposition of a VAR VariablefHistDec
Impulse Responses in a Common Tidy FormatfIRF fIRF.default fIRF.fIRF fIRF.fLP fIRF.fSignRestr fIRF.list
Create Lagged MatrixfLagMakerMatrix
Classical Local Projections (fixest-like syntax)fLP
Local Projections Difference-in-Differences (fixest-like syntax)fLPDID
Local Projections with an External Instrument (LP-IV)fLPIV
Panel Local Projections (fixest-like syntax)fLPPanel
Long-Run Maximum-Response Impulse ResponsesfMaxIRF
Moving Block Bootstrap for VAR Residuals and InstrumentsfMBBVAR
Weak-IV Robust Impulse Response Inference (Montiel-Olea, Stock, Watson 2021)fMSW
Nonlinear and State-Dependent Local ProjectionsfNLLP
Ordinary Least Squares RegressionfOLS
Plot Historical DecompositionfPlotHistDec
Plot Impulse ResponsesfPlotIRF
Plot LP-DiD event-study estimatesfPlotLPDID
Plot Nonlinear Local Projection ResponsesfPlotNLLP
Plot Forecast Error Variance DecompositionfPlotVarDec
Polynomial Convolution of Two Matrix Lag PolynomialsfPolyConvolve
Update ggplot2 Theme Defaults to tidyMacro StylefSetTidyMacroTheme
Sign, Narrative and Sign-Plus-IV Identification of a Structural VARfSignRestr print.fSignRestr
Spectral Forecast Error Variance DecompositionfSpectralFEVD
Print SVAR Identification StepsfSVARSteps
Invertibility Test for External Instrument SVARfTestInvertibility
Recoverability Test for External Instrument SVARfTestRecoverability
Custom ggplot2 Theme for tidyMacro PackagefThemeTidyMacro
Uhlig Maximum-Share Impulse ResponsesfUhligIRF
Uhlig Maximum-Share Shock DirectionfUhligMaxShare
Vector Autoregression (VAR) Model EstimationfVAR
Vector Autoregression with Exogenous Variables (VARX) Model EstimationfVARX
Compute Wold Impulse Response Functions for VAR ModelfWoldIRF
Galí (1999) DataGali1999
Gertler & Karadi (2015) Data, Forni-Gambetti-Ricco SampleGK2015
Gertler & Karadi (2015) Data with External InstrumentGK2015_2
Jorda and Taylor (2025) Quarterly Local Projection DataJordaTaylor2025
Jorda and Taylor (2025) Monthly Instrumental Variable DataJordaTaylor2025IV
Kaenzig (2021) DataKaenzig2021
Mian, Sufi and Verner (2017) DataMianSufiVerner2017
Mian, Sufi and Verner (2018 Update) Global Debt DataMianSufiVerner2018
Responses to Shocks of Given Sizes from a Nonlinear Local Projectionpredict.fNLLP
tidyMacro Color Scale for ggplot2scale_color_tidyMacro scale_colour_tidyMacro
tidyMacro Fill Scale for ggplot2scale_fill_tidyMacro
Tenreyro and Thwaites (2016) DataTenreyroThwaites2016
Tidy Local Projection Estimatestidy.fLP
Tidy Panel Local Projection Estimatestidy.fLPPanel
Tidy Nonlinear Local Projection Estimatestidy.fNLLP
tidyMacro Color PalettetidyMacro_colors
Uhlig (2005) DataUhlig2005