## 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.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(NormalLaplace)
Loading required package: DistributionUtils
Loading required package: RUnit
Loading required package: GeneralizedHyperbolic
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/NormalLaplace/summary.nlFit.Rd_%03d_medium.png", width=480, height=480)
> ### Name: summary.nlFit
> ### Title: Summarizing Normal Laplace Distribution Fit
> ### Aliases: summary.nlFit print.summary.nlFit
> ### Keywords: distribution
>
> ### ** Examples
>
> ## Continuing the nlFit() example:
> param <- c(2, 2, 1, 1)
> dataVector <- rnl(500, param = param)
> fit <- nlFit(dataVector, hessian = TRUE)
Error in dnl(x, param = param) : beta must be non-negative
Calls: nlFit -> optim -> <Anonymous> -> fn -> dnl
Execution halted