optimPaleo | R Documentation |
paleotree
Likelihood FunctionsThis function is a deliberately simplistic automation wrapper for the function
optim
and the use of the "L-BFGS-B"
optimizing method,
with initial parameter values and bounds provided with parInit
,
parLower
and parUpper
. It is mainly provided here
as a shorthand to be used in educational demonstrations where model-fitting
is not the primary focus, and use in actual analyses should be avoided.
optimPaleo(modelFun)
modelFun |
A likelihood function for a model, of class |
This is mainly provided in this publicly released package for pedagogical
reasons. Users seeking an optimizer for their own analytical purposes
should write their own optim
function.
Returns the results from using optim
.
constrainParPaleo
and modelMethods
# This function simply replicates optim() as shown below # where modelFun is the likelihood function #optim(parInit(modelFun),modelFun, # lower = parLower(modelFun),upper = parUpper(modelFun), # method = "L-BFGS-B",control = list(maxit = 1000000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.