Package: badp 0.5.0

Marcin Dubel

badp: Bayesian Averaging for Dynamic Panels

Implements Bayesian model averaging for dynamic panels with weakly exogenous regressors as described in the paper by Moral-Benito (2013, <doi:10.1080/07350015.2013.818003>). The package provides functions to estimate dynamic panel data models and analyze the results of the estimation.

Authors:Krzysztof Beck [aut], Piotr Cukier [aut], Marcin Dubel [aut, cre], Mariusz Szczepanczyk [aut], Mateusz Wyszynski [aut]

badp_0.5.0.tar.gz
badp_0.5.0.tar.gz(r-4.7-arm64)badp_0.5.0.tar.gz(r-4.7-x86_64)badp_0.5.0.tar.gz(r-4.6-arm64)badp_0.5.0.tar.gz(r-4.6-x86_64)
badp_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
badp/json (API)
NEWS

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

Bug tracker:https://github.com/badp-project/badp/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

3.00 score 4 scripts 644 downloads 30 exports 44 dependencies

Last updated from:e6b4c10b7b. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK166
linux-devel-x86_64OK174
source / vignettesOK291
linux-release-arm64OK177
linux-release-x86_64OK165
wasm-releaseOK123

Exports:best_modelsbmacoef_histcompute_model_space_statsexogenous_matrixextract_namesfeature_standardizationhessianinit_model_space_paramsjoin_lagged_coljointnessmatrices_from_dfmodel_pmpmodel_sizesnested_optimization_wrappernested_std_dev_from_paramsnon_nested_optimization_wrappernon_nested_std_dev_from_paramsoptim_model_spaceoptim_model_space_paramsposterior_densregressor_names_from_params_vectorresidual_maker_matrixsem_B_matrixsem_C_matrixsem_dep_var_matrixsem_likelihoodsem_psi_matrixsem_regressors_matrixsem_sigma_matrix

Dependencies:clicpp11dplyrevaluatefarvergenericsggplot2gluegridExtragtablehighrisobandknitrlabelinglatticelifecyclemagrittrMatrixoptimbasepatchworkpbapplypillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorjerlangrootSolveS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithrxfunyaml

badp: Bayesian model averaging for dynamic panels with weakly exogenous regressors

Rendered frombadp_vignette.Rmdusingknitr::rmarkdownon Jun 13 2026.

Last update: 2026-05-14
Started: 2026-03-11

Readme and manuals

Help Manual

Help pageTopics
Table with the best models according to one of the posterior criteriabest_models
Calculation of the bma objectbma
Graphs of the distribution of the coefficients over the model spacecoef_hist
Extract posterior statistics from Bayesian Model Averaging Resultscoef.badp_bma
Approximate standard deviations for the modelscompute_model_space_stats
Economic Growth Dataeconomic_growth
Perform feature standardizationfeature_standardization
Example output of the bma functionfull_bma_results
Example output of 'optim_model_space'full_model_space
Calculation of the jointness measuresjointness
Migration data in the original formatmigration_data
Example output of 'optim_model_space' in the case of migration datamigration_model_space
Example output of 'optim_model_space' in the case of migration data obtained with nonnested approach.migration_model_space_nonnested
Graphs of the prior and posterior model probabilities for the best individual modelsmodel_pmp
Graphs of the prior and posterior model probabilities of the model sizesmodel_sizes
Example output of 'optim_model_space' for non-nested modelsmodel_space_nonnested
Calculation of the model_space objectoptim_model_space
Finds MLE parameters for each model in the given model spaceoptim_model_space_params
Economic Growth Data in the original formatoriginal_economic_growth
Plot Bayesian Model Averaging Resultsplot.badp_bma
Graphs of the posterior densities of the coefficientsposterior_dens
Print Best Models Tablesprint.badp_best_models
Print Bayesian Model Averaging Resultsprint.badp_bma
Print Coefficient Tables from Bayesian Model Averagingprint.badp_bma_coef
Print a Drawable Best-Models Grobprint.badp_drawable_grob
Print Model Space Objectprint.badp_model_space
Print Summary of Bayesian Model Averaging Resultsprint.summary.badp_bma
Print Summary of a Model Space Objectprint.summary.badp_model_space
Likelihood for the SEM modelsem_likelihood
Example output of 'optim_model_space' (small version)small_model_space
Summarize Bayesian Model Averaging Resultssummary.badp_bma
Summarize a Model Space Objectsummary.badp_model_space