asis_update: MCMC update for multi-BERGM

View source: R/multibergm_updates.R

asis_updateR Documentation

MCMC update for multi-BERGM

Description

Function used to perform one exchange-within-Gibbs MCMC update for all the parameters in a multi-BERGM. This applies a standard Gibbs update for the network-level covariance parameter before using the exchange algorithm within an Ancillarity-Sufficiency Interweaving Strategy (ASIS) to update the remaining parameters.

Usage

asis_update(curr, prior, model_matrix, control)

Arguments

curr

A list of the current values of the model parameters

control

A list of parameters set by control_multibergm specifying priors, proposal variances, and group labels.

Value

A list of the updated values of the model parameters and the acceptance counts for the exchange updates.


brieuclehmann/multibergm documentation built on June 19, 2024, 6:36 p.m.