Update DualEndpoint
class model components with regard to DLT and biomarker correlation.
Source: R/helpers_model.R
h_model_dual_endpoint_rho.Rd
A 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 correlationrho
should be used or not. Ifrho
is not supposed to be a fixed value, a prior distribution from the scaled Beta family will be used. See the details below, underrho
argument.- rho
(
numeric
)
DLT and biomarker correlation. It must be either a fixed value (between-1
and1
), or a named vector with two elements, nameda
andb
for the Beta prior on the transformationkappa = (rho + 1) / 2
, which is in(0, 1)
. For example,a = 1, b = 1
leads 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, 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.