
Update certain components of DualEndpoint model with regard to prior variance factor of the random walk.
Source: R/helpers_model.R
h_model_dual_endpoint_sigma2betaW.RdA simple helper function that takes DualEndpoint object and updates
priormodel, modelspecs, init, sample slots according to the random walk
variance.
Arguments
- use_fixed
(
flag)
indicates whether a fixed value forsigma2betaWshould be used or not. Ifsigma2betaWis not supposed to be a fixed value, a prior distribution from the Inverse-Gamma distribution will be used. See the details below, undersigma2betaWargument.- sigma2betaW
(
numeric)
the prior variance factor of the random walk prior for the biomarker model. Either a fixed value or Inverse-Gamma distribution parameters, i.e. vector with two elements namedaandb.- de
(
DualEnpoint)
dual endpoint model whose slots will be updated.
Value
A DualEndpoint model with updated priormodel, modelspecs,
init, sample slots.