Initialize Parameter Values for an Antagonist Sigmoid Model
sigmoid_antagonist_init.RdCreating 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
numericornumericreturningfunctionunits of the treatment. If the treatment islog_dose, the default value of-6corresponds1e-6molar =1μM- hill
numericornumericreturningfunctionwith units response/log_dose- top
numericornumericreturningfunctionin units of the response- bottom
numericornumericreturningfunctionin units of the response- ...
additional parameter initialization. Each named argument should be a function that returns an
numericarrayof 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))
} # }