Learn R Programming

paleoTS (version 0.5-1)

ESD: Compute Expected Squared Divergence (ESD) for simple evolutionary models

Description

Computes for a specified model and duration of time the expected squared divergence (ESD), which is a useful measure of the magnitude and rate of change across different models.

Usage

ESD(y, dt, model = c("GRW", "URW", "Stasis", "allThree"), method = c("Joint", "AD"), 
    pool = TRUE, ...)

Arguments

y

a paleoTS object

dt

the time interval to evaluate ESD

model

the model of evolution to assume. See Details.

method

Joint or AD parameterization

pool

if the variances across samples should be pooled; default is TRUE.

other arguments to the model-fitting functions

Value

the ESD value

Details

Hunt (2012) argued that rate metrics make sense only in the context of specific models of evolution. It is thus difficult to meaningfully compare rates across sequences generated by different evolutionary processes. ESD values can be used for a specified model and duration as a comparable measure of the amount of evolutionary change that is expected.

Acceptable values for the model argument can be "GRW" for the general random walk (directional change), "URW" for the unbiased random walk, and "Stasis." In addition, can also specify "allThree", in which case all these models will be fit and the resulting ESD will be the wieghted average of them, using model support (Akaike weights) for the weighting (see Hunt [2012], p. 370)

References

Hunt, G. 2012. Fitting and comparing models of phyletic evolution: random walks and beyond. Paleobiology 38:351--373.

Examples

Run this code
# NOT RUN {
  # simulate random walk
  x<- sim.GRW(ns=20)
  esd.urw<- ESD(x, dt=10, model="URW")
  esd.all<- ESD(x, dt=10, model="allThree") 
  
# }

Run the code above in your browser using DataLab