View source: R/model-sigmoid-init.R
sigmoid_antagonist_init | R Documentation |
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()
.
sigmoid_antagonist_init(
ic50 = function() stats::runif(n = 1, min = -7, max = -5),
hill = function() stats::runif(n = 1, min = -1.2, max = -0.8),
top = function() stats::runif(n = 1, min = 0.8, max = 1.2),
bottom = function() stats::runif(n = 1, min = -0.2, max = 0.2),
...
)
ic50 |
|
hill |
|
top |
|
bottom |
|
... |
additional parameter initialization. Each named argument should be
a function that returns an |
input for [brm][brms::brm](init = ...)
sigmoid_antagonist_formula()
, sigmoid_antagonist_prior()
, and
sigmoid_model()
## Not run:
# 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))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.