fit.all.univariate | R Documentation |
Wrapper function to find maximum likelihood solutions for all univariate models (excluding models with mode shifts) to an evolutionary sequence (time-series).
fit.all.univariate(y, pool = TRUE)
y |
an univariate paleoTS object. |
pool |
indicating whether to pool variances across samples |
The function returns a list of all investigated models and their highest log-likelihood (and their corresponding AICc and AICc weight).
Kjetil Lysne Voje
Hunt, G. 2006. Fitting and comparing models of phyletic evolution: random walks and beyond. Paleobiology 32:578–601
Hunt, G., Bell, M. A. & Travis, M. P. Evolution towards a new adaptive optimum: Phenotypic evolution in a fossil stickleback lineage. Evolution 62:700–710 (2008)
## ##Generate a paleoTS object.
x <- paleoTS::sim.GRW(30)
## Fit univariate models to the data.
fit.all.univariate(x, pool = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.