Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_simulate_v1.R
Basically this function assigns probability 1 to occupied
areas according to the simulated state for a node, and
probability 0 for the other areas. These data – the
simulated truth – can then be compared to the inferred
probabilities of presence in each area, from
infprobs_to_probs_of_each_area
.
1 2 | simstates_to_probs_of_each_area(simulated_states_by_node,
states_list, relprobs_matrix)
|
simulated_states_by_node |
The simulated states by node (0-based indices). |
states_list |
A list of the possible states/geographic ranges, in 0-based index form. |
relprobs_matrix |
A relative probabilities matrix
returned by |
area_probs
The probability of presence in each
area.
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
simulate_biogeog_history
,
infprobs_to_probs_of_each_area
1 | testval=1
|
Loading required package: rexpokit
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase
Attaching package: 'phylobase'
The following object is masked from 'package:ape':
edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.