Initialize Parameter Values for an Antagonist Sigmoid Model
sigmoid_antagonist_init.Rd
Creating initial values for an agonist sigmoid model parameters
that can be passed to the sigmoid_model()
along with the
sigmoid_antagonist_formula()
and sigmoid_antagonist_prior()
.
Arguments
- ic50
numeric
ornumeric
returningfunction
units of the treatment. If the treatment islog_dose
, the default value of-6
corresponds1e-6
molar =1
μM- hill
numeric
ornumeric
returningfunction
with units response/log_dose- top
numeric
ornumeric
returningfunction
in units of the response- bottom
numeric
ornumeric
returningfunction
in units of the response- ...
additional parameter initialization. Each named argument should be a function that returns an
numeric
array
of length1
, seerstan_default_init()
to use the rstan default init.
Examples
if (FALSE) { # \dontrun{
# Consider an inhibitor that has a min response around 50%, IC50 is estimated
# to be around 1 nM, maximum response is known to be around 1,
init <- BayesPharma::sigmoid_antagonist_init(
ec50 = -9,
bottom = 0.5)
# By default rstan initializes unspecified initial values to be uniformly at
# random in the range (-2, 2) on the unconstrained scale. For the default
# distributional response, family=gaussian(), the shape parameter sigma' is
# bounded below by zero through this transformation Y = log(X - 0). So, to
# explicitly give the default initialization for 'sigma', we can use
init <- BayesPharma::sigmoid_antagonist_init(
sigma = BayesPharma::rstan_default_init(lb = 0))
} # }