powered by
optim
tidy_optim(x, ...)glance_optim(x, ...)
glance_optim(x, ...)
tidy returns a data frame with one row per parameter that was estimated, with columns
tidy
parameter1
parameter2
glance
fn
gr
func <- function(x) { (x[1] - 2)^2 + (x[2] - 3)^2 + (x[3] - 8)^2 } o <- optim(c(1, 1, 1), func) tidy(o) glance(o)
Run the code above in your browser using DataLab