onls 0.1-4 is an R package that fits two-dimensional data by orthogonal nonlinear least-squares and provides fit diagnostics and plotting.
onls 0.1-4 is an R package titled Orthogonal Nonlinear Least-Squares Regression. It fits two-dimensional data by orthogonal nonlinear least-squares using Levenberg-Marquardt minimization and provides functionality for fit diagnostics and plotting.
The manual documents functions including check_o, confint.onls, deviance_o, logLik_o, NIST, onls, plot.onls, print.onls, residuals_o, summary.onls, and x0. It describes the onls algorithm, arguments such as extend and window, and examples for checking orthogonality and comparing residuals.
| Version | 0.1-4 |
|---|---|
| License | GPL (>= 2) |
| Dependencies | R (>= 2.13.0), minpack.lm |
| Needs compilation | no |
| Optimization method | Levenberg-Marquardt minimization in an outer loop |
| Default extend | c(0.2, 0.2) |
| Default window | 12 |
It fits two-dimensional data by orthogonal nonlinear least-squares using Levenberg-Marquardt minimization.
Use check_o(object, plot = TRUE); it calculates the angle between the tangent slope and the Euclidean vector slope and can plot the alpha values.
It defines the interval [xi−w, xi+w] in which optimize searches for (x0i, y0i) to minimize the orthogonal distance.
print.onls reports a failed message when not all points are orthogonal; the manual suggests a more detailed analysis with check_o.