Learn R Programming

BioGeoBEARS (version 0.2.1)

get_infparams_optimx: Get the inferred parameters from an ML optimization

Description

This function extracts the ML parameter values, and associated statistics and codes, from the relprobs_matrix returned by bears_2param_standard_fast and similar functions.

Usage

get_infparams_optimx(results_object, inffn)

Arguments

results_object
The results returned by bears_2param_standard_fast or a similar function.
inffn
The filename holding the results_object, which specifies which model was run.

Value

infparams The vector of inferred parameters.

Details

The function has subroutines for recognizing a variety of currently-implemented models, assuming they used optimx internally to do the ML search. New models would require addition of new subroutines.

get_infparams_optimx and get_infparams_optimx_nosim differ only in the format of the filenames.

References

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

Matzke_2012_IBS

See Also

get_infparams_optimx_nosim, bears_2param_standard_fast, get_inf_LgL_etc_optimx

Examples

Run this code
testval=1

Run the code above in your browser using DataLab