Learn R Programming

BioGeoBEARS (version 0.2.1)

calcZ_part: Calculate Z (equation 6.3 of Harte 2011)

Description

This function is a used by calcP_n via apply, all within get_probvals. get_probvals calculates the Maximum Entropy (Harte (2011)) discrete probability distribution of a number of ordered states (e.g., faces of a 6-sided die) given the mean of many rolls. Here, this is merely used so that a single parameter can control the probability distribution of small versus large descendant areas during cladogenesis.

Usage

calcZ_part(n, lambda1)

Arguments

n
Value of the state (e.g., which of a number of faces on a die, or number of different size classes of geographic range)
lambda1
Lambda parameter (Harte2011).

Value

Z, numeric value

Details

See also: Maximum Entropy probability distribution for discrete variable with given mean (and discrete uniform flat prior) http://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster http://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution

Harte2011

Matzke_2012_IBS

See Also

calcP_n, maxent, symbolic_to_relprob_matrix_sp

Examples

Run this code
testval=1
n=6
lambda1 = 0.5
calcZ_part(n, lambda1)

Run the code above in your browser using DataLab