A wrapper for codeBFGS_std that is useful for easily calling
parameter optimization for this package with as few lines as possible.
Note that om
and logpdf
will be set to optimal
parameters, the return is simply for information.
Usage
BFGS_lpdf(
om,
logpdf,
parlist = list(),
newt = FALSE,
cgsteps = 100,
cgtol = 0.001,
...
)
Arguments
- om
an
outermod
instance- logpdf
a
lpdf
instance- parlist
an initial point, which are pulled from `om` and `logpdf` if not provided
- newt
boolean for if Newtons method should be used
- cgsteps
max number of cg iterations, if
newt=FALSE
- cgtol
cg tolerance, if
newt=FALSE
- ...
additional parameters passed to
BFGS_std