summary.gsl_nls: Model summary

summary.gsl_nlsR Documentation

Model summary

Description

Returns the model summary for a fitted "gsl_nls" object.

Usage

## S3 method for class 'gsl_nls'
summary(object, correlation = FALSE, symbolic.cor = FALSE, ...)

Arguments

object

An object inheriting from class "gsl_nls".

correlation

logical; if TRUE, the correlation matrix of the estimated parameters is returned and printed.

symbolic.cor

logical; if TRUE, print the correlations in a symbolic form (see symnum) rather than as numbers.

...

At present no optional arguments are used.

Value

List object of class "summary.nls" identical to summary.nls

See Also

summary.nls

Examples

## data
set.seed(1)
n <- 25
xy <- data.frame(
  x = (1:n) / n,
  y = 2.5 * exp(-1.5 * (1:n) / n) + rnorm(n, sd = 0.1)
)
## model
obj <- gsl_nls(fn = y ~ A * exp(-lam * x), data = xy, start = c(A = 1, lam = 1))

summary(obj)

gslnls documentation built on May 29, 2024, 4:41 a.m.