Skip to contents

Create initial values for sigmoid growth model parameters that can be passed to the growth_sigmoid_model.

Usage

growth_sigmoid_init(
  K = function() stats::runif(n = 1, min = 0.8, max = 1.2),
  K0 = function() stats::runif(n = 1, min = -0.2, max = 0.2),
  rate = function() stats::runif(n = 1, min = 0.8, max = 1.2),
  lambda = function() stats::runif(n = 1, min = 0.3, max = 0.7),
  ...
)

Arguments

K

numeric or numeric returning function

K0

numeric or numeric returning function

rate

numeric or numeric returning function

lambda

numeric or numeric returning function units of time

...

additional parameter initialization. Each named argument should be a function that returns a numeric or array depending on the dimension of the parameter, see rstan_default_init() to use the rstan default init.

Value

input for [brms::brm](init = ...)

Examples

if (FALSE) { # \dontrun{
init <- BayesPharma::growth_sigmoid_init(
  A = 100)
} # }