opt: Estimation via Optimization

Description Usage Arguments Value Author(s)

View source: R/opt.R

Description

Estimates parameters from a given objective function using optimization.

Usage

1
opt(FUN, start_values, optim = TRUE, ...)

Arguments

FUN

Objective function.

start_values

A vector of starting values corresponding to the number of parameters to be estimated.

optim

Logical. If TRUE, the optim function is used. If FALSE, the nlminb function is used.

...

Additional arguments to be passed to the optimizer and arguments to be passed to the objective function.

Value

Returns the output of optim() or nlminb().

Author(s)

Ivan Jacob Agaloos Pesigan


jeksterslabds/jeksterslabRdist documentation built on Aug. 9, 2020, 7:33 a.m.