Find the maximum likelihood.
fit_function(
minus_like,
tree,
trait,
X,
model,
start.values,
lower.values,
upper.values,
optim,
rootTip
)
A list, with the maximum likelihood rate parameter, and the likelihood value.
a function giving the minus likelihood of the model.
named vector of traits at the tips.
a model for the trait evolution. One of "cauchy"
or "lambda"
(see Details).
if "local", only a local optimization around the initial parameter values is performed (the default).
If "global", a global maximization is attempted using the "MLSL" approach (see nloptr
).
root tip for the reml.