Learn R Programming

mrds (version 2.2.4)

nlminb_wrapper: Wrapper around nlminb

Description

This is a wrapper around nlminb to use scaling, as this is not available (nor will it be) in optimx.

Usage

nlminb_wrapper(
  par,
  ll,
  ugr = NULL,
  lower = NULL,
  upper = NULL,
  mcontrol,
  hess = NULL,
  ddfobj,
  data,
  ...
)

Arguments

par

starting parameters

ll

log likelihood function

ugr

gradient function

lower

lower bounds on parameters

upper

upper bounds on parameters

mcontrol

control options

hess

hessian function

ddfobj

detection function specification object

data

the data

anything else to pass to ll

Value

optimx object