| generate_random_init | R Documentation |
Generates random initial values for model parameters by drawing from a uniform distribution on the unconstrained scale and then transforming them to the constrained scale.
generate_random_init(pl_full, par_list, range = 2)
pl_full |
A list containing the full parameter structure, including the 'init' field which serves as a template. |
par_list |
A list defining the structure and constraints of the parameters, including 'unc_length'. |
range |
Numeric; the range for the uniform distribution '[-range, range]' used for generating unconstrained values. Default is 2. |
A numeric vector of initial values where 'NA' elements are replaced with randomly generated constrained values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.