Skip to contents

Create initial values for Richards growth model parameters that can be passed to the growth_richards_model.

Usage

growth_richards_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),
  nu = function() stats::runif(n = 1, min = 0.8, max = 1.2),
  ...
)

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

nu

numeric or numeric returning function values range between [0, Inf], with 1 being standard sigmoid

...

additional parameter initialization. Each named argument should be a function that returns an numeric array of length 1, see rstan_default_init() to use the rstan default init.

Value

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

Examples

if (FALSE) { # \dontrun{
init <- BayesPharma::growth_richards_init(
  A = 100,
  nu = 2)
} # }