summary.gsl_nls | R Documentation |
Returns the model summary for a fitted "gsl_nls"
object.
## S3 method for class 'gsl_nls'
summary(object, correlation = FALSE, symbolic.cor = FALSE, ...)
object |
An object inheriting from class |
correlation |
logical; if |
symbolic.cor |
logical; if |
... |
At present no optional arguments are used. |
List object of class "summary.nls"
identical to summary.nls
summary.nls
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.