Learn R Programming

rbi.helpers (version 0.4.0)

update_proposal: Construct a proposal from run results

Description

This function takes the provided bi_model and adds a generic Gaussian proposal distribution.

Usage

update_proposal(model, truncate = TRUE, blocks = c("parameter", "initial"))

Value

the updated bi model

Arguments

model

a bi_model object

truncate

truncate the multivariate normal proposals according to the used priors, e.g. truncating a parameter with beta prior at 0 and 1

blocks

blocks to use (out of "parameter" and "initial")