| .nlmP | R Documentation |
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)), ...)
objfunc |
the function to be minimized. |
params |
starting values for the parameters. |
lower |
lower bounds for the variables. Defaults to |
upper |
upper bounds for the variables. Defaults to |
... |
further arguments to be passed to the function
|
Constraints on the parameter values are internally imposed by using exponential, logarithmic, and logit transformation of the parameter values.
The output is the same as for the function nlm.
Patrick E. Brown p.brown@lancaster.ac.uk.
Adapted and included in geoR by
Paulo Justiniano Ribeiro Jr. paulojus@leg.ufpr.br
Further information on the package geoR can be found at:
http://www.leg.ufpr.br/geoR/.
nlm, optim.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.