This function adapts the R function nlm
to allow for
constraints (upper and/or lower bounds) in the values of the parameters.
.nlmP(objfunc, params, lower=rep(-Inf, length(params)),
upper=rep(+Inf, length(params)), …)
the function to be minimized.
starting values for the parameters.
lower bounds for the variables. Defaults to \(-Inf\).
upper bounds for the variables. Defaults to \(-Inf\).
further arguments to be passed to the function
nlm
.
The output is the same as for the function nlm
.
Constraints on the parameter values are internally imposed by using exponential, logarithmic, and logit transformation of the parameter values.
Further information on the package geoR can be found at: http://www.leg.ufpr.br/geoR.