opt.GRW | R Documentation |
Fit evolutionary model using "AD" parameterization
opt.GRW(
y,
pool = TRUE,
cl = list(fnscale = -1),
meth = "L-BFGS-B",
hess = FALSE
)
opt.URW(
y,
pool = TRUE,
cl = list(fnscale = -1),
meth = "L-BFGS-B",
hess = FALSE
)
opt.Stasis(
y,
pool = TRUE,
cl = list(fnscale = -1),
meth = "L-BFGS-B",
hess = FALSE
)
opt.StrictStasis(y, pool = TRUE, cl = list(fnscale = -1), hess = FALSE)
y |
a |
pool |
if TRUE, sample variances are substituted with their pooled estimate |
cl |
optional control list, passed to |
meth |
optimization algorithm, passed to |
hess |
if TRUE, return standard errors of parameter estimates from the hessian matrix |
These functions use differences between consecutive populations in the time series in order to remove temporal autocorrelation. This is referred to as the "Ancestor-Descendant" or "AD" parameterization by Hunt [2008], and it is a REML approach (like phylogenetic independent contrasts). A full ML approach, called "Joint" was found to have generally better performance (Hunt, 2008) and generally should be used instead.
a paleoTSfit
object with the model fitting results
opt.URW()
: fit the URW model by the AD parameterization
opt.Stasis()
: fit the Stasis model by the AD parameterization
opt.StrictStasis()
: fit the Strict Stasis model by the AD parameterization
It is easier to use the convenience function fitSimple
.
Hunt, G. 2006. Fitting and comparing models of phyletic evolution: random walks and beyond. Paleobiology 32(4): 578-601.
fitSimple
, opt.joint.GRW
x <- sim.GRW(ns = 20, ms = 1) # strong trend
plot(x)
w.grw <- opt.GRW(x)
w.urw <- opt.URW(x)
compareModels(w.grw, w.urw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.