Learn R Programming

FBMS (version 1.3)

Flexible Bayesian Model Selection and Model Averaging

Description

Implements the Mode Jumping Markov Chain Monte Carlo algorithm described in and its Genetically Modified counterpart described in as well as the sub-sampling versions described in for flexible Bayesian model selection and model averaging.

Copy Link

Version

Install

install.packages('FBMS')

Monthly Downloads

402

Version

1.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Jon Lachmann

Last Published

November 20th, 2025

Functions in FBMS (1.3)

fbms.mlik.master

Master Log Marginal Likelihood Function
gen.probs.mjmcmc

Generate a Probability List for MJMCMC (Mode Jumping MCMC)
fitted.fbms_predict

Access Fitted Values
gaussian.loglik

Log Likelihood Function for Gaussian Regression with a Jeffreys Prior and BIC Approximation
gen.params.mjmcmc

Generate a Parameter List for MJMCMC (Mode Jumping MCMC)
gen.probs.gmjmcmc

Generate a Probability List for GMJMCMC (Genetically Modified MJMCMC)
mjmcmc

Main Algorithm for MJMCMC (Genetically Modified MJMCMC)
mjmcmc.parallel

Run Multiple MJMCMC Runs in Parallel, Merging the Results Before Returning.
log_prior

Log Model Prior Function
logistic.loglik

Log Likelihood Function for Logistic Regression with a Jeffreys Parameter Prior and BIC Approximations of the Posterior.
impute_x

Impute Missing Values in the Data
get.best.model

Extract the Best Model from MJMCMC or GMJMCMC Results
nrelu

Negative ReLU Function
p0

p0 Polynomial Term
gmjmcmc

Main Algorithm for GMJMCMC (Genetically Modified MJMCMC)
get.mpm.model

Retrieve the Median Probability Model (MPM)
impute_x_pred

Impute Missing Values in Test Data Using Training Data
gelu

GELU Function
gen.params.gmjmcmc

Generate a Parameter List for GMJMCMC (Genetically Modified MJMCMC)
gmjmcmc.parallel

Run Multiple GMJMCMC (Genetically Modified MJMCMC) Runs in Parallel.
p05

p05 Polynomial Term
p0p05

p0p05 Polynomial Term
hs

Heavy Side Function
plot.bgnlm_model

Plot BGNLM Model
predict.gmjmcmc_parallel

Predict Using a GMJMCMC Result Object from a Parallel Run
predict.gmjmcmc_merged

Predict Using a Merged GMJMCMC Result Object
print.feature

Print Method for \"feature\" Class
print.gmjmcmc

Print GMJMCMC Model Object
p3

p3 Polynomial Term
p0p1

p0p1 Polynomial Term
pm1

pm1 Polynomial Term
pm2

pm2 Polynomial Term
predmean

Generic for Accessing Mean Predictions
model.string

Function to Generate a Function String for a Model Consisting of Features
p0p0

p0p0 Polynomial Term
merge_results

Merge a List of Multiple Results from Many Runs
marginal.probs

Function for Calculating Marginal Inclusion Probabilities of Features Given a List of Models
summary.fbms_predict

Summary of FBMS Prediction Object
print.mjmcmc

Print MJMCMC Model Object
p0p3

p0p3 Polynomial Term
print.mjmcmc_parallel

Print MJMCMC Parallel Model Object
p0p2

p0p2 Polynomial Term
print.gmjmcmc_merged

Print GMJMCMC Merged Model Object
relu

ReLU Function
set.transforms

Set the Transformations Option for GMJMCMC (Genetically Modified MJMCMC).
summary.gmjmcmc

Function to Print a Quick Summary of the Results
p2

p2 Polynomial Term
p0pm2

p0pm2 Polynomial Term
predict.bgnlm_model

Predict Responses from a BGNLM Model
sigmoid

Sigmoid Function
p0pm05

p0pm05 Polynomial Term
nhs

Negative Heavy Side Function
predict.mjmcmc

Predict Using an MJMCMC Result Object
plot.gmjmcmc_merged

Plot a gmjmcmc_merged Run
p0pm1

p0pm1 Polynomial Terms
not

Not x
plot.mjmcmc

Function to Plot GMJMCMC Results and Merged Results from merge.results
predquantiles

Generic for Accessing Quantile Predictions
residuals.bgnlm_model

Residuals for BGNLM Model
predquantiles.fbms_predict

Access Quantile Predictions
residuals.gmjmcmc

Residuals for GMJMCMC Model
predict.gmjmcmc

Predict Using a GMJMCMC Result Object
predict.mjmcmc_parallel

Predict Using an MJMCMC Result Object from a Parallel Run
summary.gmjmcmc_merged

Function to Print a Quick Summary of the Results
string.population.models

Function to Get a Character Representation of a List of Models
predmean.fbms_predict

Access Mean Predictions
residuals.gmjmcmc_merged

Residuals for GMJMCMC Merged Model
string.population

Function to Get a Character Representation of a List of Features
residuals.mjmcmc

Residuals for MJMCMC Model
summary.mjmcmc

Function to Print a Quick Summary of the Results
ngelu

Negative GELU Function
plot.gmjmcmc

Function to Plot GMJMCMC Results and Merged Results from merge.results
plot.mjmcmc_parallel

Plot an mjmcmc_parallel Run
plot.fbms_predict

Plot FBMS Prediction Object
pm05

pm05 Polynomial Term
summary.mjmcmc_parallel

Function to Print a Quick Summary of the Results
rmclapply

rmclapply: Cross-Platform mclapply/Forking Hack for Windows
sin_deg

Sine Function for Degrees
print.bgnlm_model

Print BGNLM Model Object
residuals.mjmcmc_parallel

Residuals for MJMCMC Parallel Model
troot

Cube Root Function
print.fbms_predict

Print FBMS Prediction Object
sqroot

Square Root Function
FBMS-package

tools:::Rd_package_title("FBMS")
aggr.fbms_predict

Access Aggregated Predictions
coef.gmjmcmc

Coefficients for GMJMCMC Model
coef.bgnlm_model

Coefficients for BGNLM Model
coef.gmjmcmc_merged

Coefficients for GMJMCMC Merged Model
arcsinh

Arcsinh Transform
breastcancer

Breast Cancer Wisconsin (Diagnostic) Data Set
aggr

Generic for Accessing Aggregated Predictions
exp_dbl

Double Exponential Function
fbms

Fit a BGNLM Model Using MJMCMC or GMJMCMC Sampling.
compute_effects

Compute Effects for Specified Covariates Using a Fitted Model
diagn_plot

Plot Convergence Diagnostics for GMJMCMC or GMJMCMC Merged Results
cos_deg

Cosine Function for Degrees
erf

Erf Function
exoplanet

Excerpt from the Open Exoplanet Catalogue Data Set
abalone

Physical Measurements of 4177 Abalones, a Species of Sea Snail.
SangerData2

Gene Expression Data for Lymphoblastoid Cell Lines of 210 Unrelated HapMap individuals from four populations
coef.mjmcmc

Coefficients for MJMCMC Model
coef.mjmcmc_parallel

Coefficients for MJMCMC Parallel Model