summary.nlFit: Summarizing Normal Laplace Distribution Fit

View source: R/summary.nlFit.R

summary.nlFitR Documentation

Summarizing Normal Laplace Distribution Fit

Description

summary Method for class "nlFit".

Usage

  ## S3 method for class 'nlFit'
summary(object, ...)
  ## S3 method for class 'summary.nlFit'
print(x,
        digits = max(3, getOption("digits") - 3), ...)

Arguments

object

An object of class "nlFit", resulting from a call to nlFit.

x

An object of class "summary.nlFit" resulting from a call to summary.nlFit.

digits

The number of significant digits to use when printing.

...

Further arguments passed to or from other methods.

Details

summary.nlFit calculates standard errors for the estimates of \mu, \sigma, \alpha, and \beta of the normal laplace distribution parameter vector param if the Hessian from the call to nlFit is available.

Value

If the Hessian is available, summary.nlFit computes standard errors for the estimates of \mu, \sigma, \alpha, and \beta, and adds them to object as object$sds. Otherwise, no calculations are performed and the composition of object is unaltered.

summary.nlFit invisibly returns object with class changed to summary.nlFit.

See nlFit for the composition of an object of class nlFit.

print.summary.nlFit prints a summary in the same format as print.nlFit when the Hessian is not available from the fit. When the Hessian is available, the standard errors for the parameter estimates are printed in parentheses beneath the parameter estimates, in the manner of fitdistr in the package MASS.

See Also

nlFit, summary.

Examples

## Continuing the  nlFit() example:
param <- c(2, 2, 1, 1)
dataVector <- rnl(500, param = param)
fit <- nlFit(dataVector, hessian = TRUE)
print(fit)
summary(fit)

NormalLaplace documentation built on Nov. 26, 2023, 1:07 a.m.