plot.badp_bma: Plot Bayesian Model Averaging Results

View source: R/s3_methods_bma.R

plot.badp_bmaR Documentation

Plot Bayesian Model Averaging Results

Description

Plot method for objects of class badp_bma.

Usage

## S3 method for class 'badp_bma'
plot(x, which = "model_sizes", ...)

Arguments

x

An object of class badp_bma, typically the result of bma.

which

Character string specifying which plot to create. Options are:

  • "model_sizes" - Model size distributions (default)

  • "best_models" - Best models

  • "jointness" - Jointness analysis

  • "coef_hist" - Coefficient histograms

  • "posterior_dens" - Posterior densities

  • "model_pmp" - Model posterior probabilities

...

Additional arguments passed to the underlying plot function.

Details

This function dispatches to the appropriate visualization function based on the which parameter. The default plot shows model size distributions, which provides a comprehensive overview of the prior and posterior distributions over model sizes.

Value

The object returned by the selected visualization helper. Depending on which, this may be a single plot object or a list containing plots and/or tables; some helpers may also print output as a side effect.

See Also

bma, model_sizes, best_models, jointness, coef_hist, posterior_dens, model_pmp

Examples


data(full_model_space)
results <- bma(full_model_space)

# Default plot (model sizes)
plot(results)

# Other plot types
plot(results, which = "best_models")
plot(results, which = "jointness")



badp documentation built on Aug. 20, 2026, 9:08 a.m.