Skip to content
Prev 168495 / 398502 Next

constrainOptim

June Wong <neptune545 <at> hotmail.com> writes:
an extreme value distribution
use constrainOptim
optim() can do box constraints (i.e., independent inequality
constraints on parameters): use method="L-BFGS-B" and
the lower and upper arguments to set the bounds for
each parameter (to -Inf and Inf if there are no bounds).
If you want to set bounds on rho you have to use rho as
the parameter in your model -- this is tricky if you
can't solve for rho, but in your case lambda=log(rho/(1-rho))

  Ben Bolker