update_inits | R Documentation |
This function updates the initial values for model fitting based on the specified initialization method.
update_inits(
data,
model,
init,
init_method = c("prior", "pathfinder"),
init_method_args = list(),
...
)
data |
A list of data as produced by model modules (for example
|
model |
A |
init |
A list of initial values or a function to generate initial values. If not provided, the model will attempt to generate initial values |
init_method |
The method to use for initializing the model. Defaults to
"prior" which samples initial values from the prior. "pathfinder", which uses
the pathfinder algorithm ( |
init_method_args |
A list of additional arguments to pass to the initialization method. |
... |
Additional arguments passed to initialization methods. |
A list containing updated initial values and method-specific output.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.