process_optim: Extract 'optim' results to a row

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/BioGeoBEARS_basics_v1.R

Description

After running an ML (maximum likelihood) search with optim, optim returns a list with a variety of objects. It is often handy to have the parameter values, log-likelihood, etc., extracted to a table for comparison with other optimization runs. process_optim does this.

Usage

1
  process_optim(optim_results, max_num_params = NULL)

Arguments

optim_results

A results object from optim

max_num_params

Specify the number of parameters, if known. If NULL, the code will try to guess.

Value

tmprow3 A row holding the optim results, which can then be added to a table with rbind.

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

optim

Examples

1
2
testval=1
# Any optim() for a biogeography scenario would take too long to run for R CMD check.

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.