Skip to content

Bayesian Averaging for Dynamic Panels

0packages depend
4Kdownloads / year
88.3%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.8.0

This release completes the accessor interface in response to the second review

of the manuscript submitted to the Journal of Statistical Software. All changes

are additive: no existing function, argument, component name or position was

changed or removed.

Extracting results from a model space

  • New accessor model_table() returns one row per model of a badp_model_space: the included regressors, their number, the maximized log-likelihood and the convergence flag. sort_by orders the models by log-likelihood or size and top keeps the first rows, so that ranking the estimated models no longer requires indexing the parameter and statistics matrices.
  • New accessors coef() and model_stats() for badp_model_space. coef() returns the parameter matrix with every row labeled and the columns named model_1, model_2, ..., or the parameters of one model with model = j. model_stats() returns the statistics matrix with named rows (loglik, marg_lik, se_<name>, robust_se_<name>, trace_HinvJ, n_params, rank_J), which were previously identified only by position.
Show all changes in 0.8.0Hide the rest of the changes in 0.8.0
  • New logLik() methods for badp_model_space (one model, selected by its position) and for the individual models returned by best_models(). They return standard "logLik" objects with df and nobs attributes, so that AIC() and BIC() apply. The value is the exact log-likelihood at the estimates.
  • bma() results gained three components, loglik, n_params and nobs, appended after the existing ones so that no name or position changes. best_models() passes them to each model, together with the model's position in the model space (model), and print() on a single model now reports its log-likelihood.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
  • NOTE13 OK, 1 NOTE2026-04-22
  • ERROR12 OK, 1 NOTE, 1 ERROR2026-04-18
  • NOTE6 OK, 1 NOTE2026-03-12
Advisories

none known

Documentation

In release 0.8.0
READMEYes · 898 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.8.0Citation fileNoWebsiteYes · pkgdown
Help pages
71 (18 internal)
Examples that run
54%30 run in a plain check · 26 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
90%
Documented parameters
99%
Return-value docs
100%
Help pages citing references
0%

Downloads

4K
CRAN downloads in the past year
Rank #6,329 · ~11/day · ~329/mo
Daily download trend is not available in this view yet.
58530 days
1.3K90 days
4K1 year
Compare downloads with other packages →
Also on344 r2u42 autocran

Repository

0Stars
0Forks
24Open issues
5Open PRs
8Releases
430Commits
4Commit identities
430 commits · Last activity 2026-03-30 · The default branch showed an older version (0.4.0.1) than CRAN on 2026-10-18
Responsiveness
How these are sampled
PRs merged (all time)
85%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
5

Releases over time

2025-10-01 · 32026-09-15 · 8
PracticesBeta

12 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/badp-project/badp on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-03-30 · The repository has a site deploy workflow

Reproducibility and dev environment (3)
renvdata-raw/Dockerfile
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-09-14
    Pull request it wrote: opened by a project member
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing badp adds 37 packages (20 with compiled code, 37 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, patchwork 3.2 MB.

Depends (1)
R >= 4.4
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Author, Maintainer since 0.4.0 (2026)
Copyright holder · added in 0.6.1
Releases (7)

Pick two releases to compare their code metrics.

  • 0.8.0Latest
    record
    2026-09-22 · current release · diff ↗ ·
    added 2 exports
    model_stats, model_table
  • 0.7.0
    record
    2026-08-31 · diff ↗ ·
    added 9 exports
    bma_table, convergence, learning_rate, model_size_table, n_models, pip, pmp, regressors, weighting
  • 0.6.1
    record
    2026-08-31 · diff ↗
  • 0.6.0
    record
    2026-08-20 · diff ↗ ·
    removed 1 export
    hessian
  • 0.5.0
    record
    2026-05-14 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0.1
    record
    2026-03-14 · diff ↗
  • 0.4.0
    record
    2026-03-11
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-11
Total releases
7 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.4
Bundled data
1.0 MB / 9 files
Download size
2.0 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("badp")
Dubel, M., badp authors, Beck, K., Cukier, P., Szczepanczyk, M., & Wyszynski, M. (2026). badp: Bayesian Averaging for Dynamic Panels (Version 0.8.0) [Computer software]. https://doi.org/10.32614/CRAN.package.badp

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for badp version 0.8.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy