Learn R Programming

mrds (version 2.3.0)

nlminb_wrapper: Wrapper around nlminb

Description

This is a wrapper around nlminb to use scaling, as this is not available in optimx.

Usage

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

Value

optimx object

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

Author

David L Miller, modified from optimx.run by JC Nash, R Varadhan, G Grothendieck.