growth_sigmoid_init: Create Initialization for the Sigmoid Growth Model

View source: R/model-growth-init.R

growth_sigmoid_initR Documentation

Create Initialization for the Sigmoid Growth Model

Description

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 = ...)⁠

See Also

growth_sigmoid_formula, growth_sigmoid_prior, and growth_sigmoid_model

Examples

## Not run: 
init <- BayesPharma::growth_sigmoid_init(
  A = 100)

## End(Not run)

maomlab/BayesPharma documentation built on Aug. 24, 2024, 8:45 a.m.