Update DualEndpoint
class model components with regard to biomarker regression variance.
Source: R/helpers_model.R
h_model_dual_endpoint_sigma2W.Rd
A simple helper function that takes DualEndpoint
model existing components
(priormodel
, modelspecs
, init
, sample
), and updates them with regard to
to biomarker regression variance sigma2W
.
Arguments
- use_fixed
(
flag
)
indicates whether a fixed value for the biomarker regression variancesigma2W
should be used or not. Ifsigma2W
is not supposed to be a fixed value, a prior distribution from the Inverse-Gamma distribution will be used. See the details below, undersigma2W
argument.- sigma2W
(
numeric
)
the biomarker variance. Either a fixed value or Inverse-Gamma distribution parameters, i.e. vector with two elements nameda
andb
.- comp
(
list
)
a named list with model components that will be updated. The names should be:priormodel
,modelspecs
,init
,sample
. For definitions of the components, seeGeneralModel
class. Themodelspecs
andinit
components oncomp
list are specified up to the body of correspondingGeneralModel@modelspecs
andGeneralModel@init
functions. These bodies are simply a lists itself.