GG_BMA: Plot BMA results

GG_BMAR Documentation

Plot BMA results

Description

A ggplot2 function for plotting the output of BMA models, from the BMA, BAS, or BMS packages.

Usage

GG_BMA(x, confidence_level = 0.95)

Arguments

x

BMA model fit from BMA, BAS (call coef() first), or BMS

confidence_level

Confidence level for the error bars. Default is 0.95.

Value

A ggplot2 object

Examples

#fit a model
fit = BAS::bas.lm(Sepal.Length ~ ., data = iris)
#get coefs
fit_coefs = coef(fit)
#plot
GG_BMA(fit_coefs)
GG_BMA(fit_coefs, confidence_level = .99)

Deleetdk/kirkegaard documentation built on May 2, 2024, 7:12 p.m.