Description Usage Arguments Value See Also
This function wraps the stats::optim function and saves the parameters and likelihood estimation at each step of the algorithm.
1 | optim_save(par, fn, ...)
|
par |
initial parameters to to be optimized over. |
fn |
the function to minimized (or maximized). |
... |
other parameters passed to optim. |
the results of optim with two additional elements, iterations with a a list of the values at each iteration of the algorithm and iterations_df which is a data.frame version of the list.
stats::optim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.