Learn R Programming

NormalLaplace (version 0.3-1)

summary.nlFit: Summarizing Normal Laplace Distribution Fit

Description

summary Method for class "nlFit".

Usage

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

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.

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.

See Also

nlFit, summary.

Examples

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

Run the code above in your browser using DataLab