
Update DualEndpoint class model components with regard to biomarker regression variance.
Source: R/helpers_model.R
h_model_dual_endpoint_sigma2w.RdA 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 variancesigma2Wshould be used or not. Ifsigma2Wis not supposed to be a fixed value, a prior distribution from the Inverse-Gamma distribution will be used. See the details below, undersigma2Wargument.- sigma2W
(
numeric)
the biomarker variance. Either a fixed value or Inverse-Gamma distribution parameters, i.e. vector with two elements namedaandb.- 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, seeGeneralModelclass. Themodelspecsandinitcomponents oncomplist are specified up to the body of correspondingGeneralModel@modelspecsandGeneralModel@initfunctions. These bodies are simply a lists itself.