Learn R Programming

phytools (version 1.5-1)

threshState: Computes value for a threshold character from a liability and thresholds

Description

Internal function for ancThresh.

Usage

threshState(x, thresholds)

Value

A discrete character value.

Arguments

x

liability.

thresholds

a named vector containing the thresholds.

Author

Liam Revell liam.revell@umb.edu

Details

threshState can also be used to simulate threshold traits.

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

Revell, L. J. (2014) Ancestral character estimation under the threshold model from quantitative genetics. Evolution, 68, 743-759.

See Also

ancThresh, threshDIC