Skip to content

Model fitting

Fit Bayesian graphical models and compare groups.

bgm()
Bayesian Estimation or Edge Selection for Markov Random Fields
bgmCompare()
Bayesian Estimation and Variable Selection for Group Differences in Markov Random Fields

Posterior methods

Inspect and summarize fitted models.

print(<bgms>)
Print method for bgms objects
summary(<bgms>)
Summary method for bgms objects
coef(<bgms>)
Extract Coefficients from a bgms Object
print(<bgmCompare>)
Print method for bgmCompare objects
summary(<bgmCompare>)
Summary method for bgmCompare objects
coef(<bgmCompare>)
Extract Coefficients from a bgmCompare Object

Simulation and prediction

Simulate from Markov random fields and predict new observations.

simulate_mrf()
Simulate Observations from a Markov Random Field
simulate(<bgms>)
Simulate Data from a Fitted bgms Model
simulate(<bgmCompare>)
Simulate Data from a Fitted bgmCompare Model
predict(<bgms>)
Predict Conditional Probabilities from a Fitted bgms Model
predict(<bgmCompare>)
Predict Conditional Probabilities from a Fitted bgmCompare Model

Extractors

Extract specific components from fitted model objects.

extract_arguments()
Extract Model Arguments
extract_category_thresholds() deprecated
Extract Category Threshold Estimates
extract_ess()
Extract Effective Sample Size
extract_group_params()
Extract Group-Specific Parameters
extract_indicator_priors()
Extract Indicator Prior Structure
extract_indicators()
Extract Indicator Samples
extract_log_odds()
Extract Posterior Mean Log-Odds
extract_main_effects()
Extract Main Effect Estimates
extract_pairwise_interactions()
Extract Pairwise Interaction Samples
extract_partial_correlations()
Extract Posterior Mean Partial Correlations
extract_posterior_inclusion_probabilities()
Extract Posterior Inclusion Probabilities
extract_precision()
Extract Posterior Mean Precision Matrix
extract_rhat()
Extract R-hat Convergence Diagnostics
extract_sbm()
Extract Stochastic Block Model Summaries

Legacy

Deprecated functions retained for backwards compatibility.

mrfSampler() deprecated
Sample observations from the ordinal MRF

Datasets

ADHD
ADHD Symptom Checklist for Children Aged 6–8 Years
Boredom
Short Boredom Proneness Scale Responses
Wenchuan
PTSD Symptoms in Wenchuan Earthquake Survivors Who Lost a Child

Package

bgms bgms-package
bgms: Bayesian Analysis of Graphical Models