fit_function: Maximum Likelihood estimator for a Cauchy model

View source: R/optimization.R

fit_functionR Documentation

Maximum Likelihood estimator for a Cauchy model

Description

Find the maximum likelihood.

Usage

fit_function(
  minus_like,
  tree,
  trait,
  X,
  model,
  start.values,
  lower.values,
  upper.values,
  optim,
  rootTip
)

Arguments

minus_like

a function giving the minus likelihood of the model.

trait

named vector of traits at the tips.

model

a model for the trait evolution. One of "cauchy" or "lambda" (see Details).

optim

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).

rootTip

root tip for the reml.

Value

A list, with the maximum likelihood rate parameter, and the likelihood value.


cauphy documentation built on Oct. 1, 2024, 5:08 p.m.