growth_richards_init: Create Initialization for the Richards Growth Model

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

growth_richards_initR Documentation

Create Initialization for the Richards Growth Model

Description

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

See Also

growth_richards_formula, growth_richards_prior, and growth_richards_model

Examples

## Not run: 
init <- BayesPharma::growth_richards_init(
  A = 100,
  nu = 2)

## End(Not run)

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