optim_save: Warpper to optim to save iterations.

Description Usage Arguments Value See Also

View source: R/optim_save.R

Description

This function wraps the stats::optim function and saves the parameters and likelihood estimation at each step of the algorithm.

Usage

1

Arguments

par

initial parameters to to be optimized over.

fn

the function to minimized (or maximized).

...

other parameters passed to optim.

Value

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.

See Also

stats::optim


jbryer/visualMLE documentation built on Nov. 22, 2021, 12:18 a.m.