
Update DualEndpoint class model components with regard to DLT and biomarker correlation.
Source: R/helpers_model.R
h_model_dual_endpoint_rho.RdA simple helper function that takes DualEndpoint model existing components
(priormodel, modelspecs, init, sample), and updates them with regard to
DLT and biomarker correlation rho.
Arguments
- use_fixed
(
flag)
indicates whether a fixed value for DLT and biomarker correlationrhoshould be used or not. Ifrhois not supposed to be a fixed value, a prior distribution from the scaled Beta family will be used. See the details below, underrhoargument.- rho
(
numeric)
DLT and biomarker correlation. It must be either a fixed value (between-1and1), or a named vector with two elements, namedaandbfor the Beta prior on the transformationkappa = (rho + 1) / 2, which is in(0, 1). For example,a = 1, b = 1leads to a uniform prior onrho.- 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.