single_var_update: MCMC update for single-group multi-BERGM

View source: R/multibergm_updates.R

single_var_updateR Documentation

MCMC update for single-group multi-BERGM

Description

Function used to perform one exchange-within-Gibbs MCMC update for all the parameters in a single-group 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

single_var_update(curr, prior, groups, proposals, control)

Arguments

curr

A list of the current values of the model parameters

prior

A list of explicit prior specifications.

groups

A vector of group memberships

proposals

A list of the current RW proposal 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.