Learn R Programming

gslnls (version 1.4.1)

GSL Multi-Start Nonlinear Least-Squares Fitting

Description

An R interface to weighted nonlinear least-squares optimization with the GNU Scientific Library (GSL), see M. Galassi et al. (2009, ISBN:0954612078). The available trust region methods include the Levenberg-Marquardt algorithm with and without geodesic acceleration, the Steihaug-Toint conjugate gradient algorithm for large systems and several variants of Powell's dogleg algorithm. Multi-start optimization based on quasi-random samples is implemented using a modified version of the algorithm in Hickernell and Yuan (1997, OR Transactions). Robust nonlinear regression can be performed using various robust loss functions, in which case the optimization problem is solved by iterative reweighted least squares (IRLS). Bindings are provided to tune a number of parameters affecting the low-level aspects of the trust region algorithms. The interface mimics R's nls() function and returns model objects inheriting from the same class.

Copy Link

Version

Install

install.packages('gslnls')

Monthly Downloads

709

Version

1.4.1

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Joris Chau

Last Published

January 17th, 2025

Functions in gslnls (1.4.1)

nobs.gsl_nls

Extract the number of observations
gsl_nls_control

Tunable Nonlinear Least Squares iteration parameters
predict.gsl_nls

Calculate model predicted values
logLik.gsl_nls

Extract model log-likelihood
nls_test_problem

Retrieve an NLS test problem
gsl_nls

GSL Nonlinear Least Squares fitting
gsl_nls_large

GSL Large-scale Nonlinear Least Squares fitting
summary.gsl_nls

Model summary
vcov.gsl_nls

Calculate variance-covariance matrix
nls_test_list

Available NLS test problems
hatvalues.gsl_nls

Calculate leverage values
gsl_nls_loss

Robust loss functions with tunable parameters
residuals.gsl_nls

Extract model residuals
sigma.gsl_nls

Residual standard deviation
confintd.gsl_nls

Confidence intervals for derived parameters
confintd

Confidence intervals for derived parameters
anova.gsl_nls

Anova tables
confint.gsl_nls

Confidence interval for model parameters
coef.gsl_nls

Extract model coefficients
fitted.gsl_nls

Extract model fitted values
formula.gsl_nls

Extract model formula
deviance.gsl_nls

Model deviance
df.residual.gsl_nls

Residual degrees-of-freedom
cooks.distance.gsl_nls

Calculate Cook's distance