View source: R/summary.nigFit.R
summary.nigFit | R Documentation |
summary
Method for class "nigFit"
.
## S3 method for class 'nigFit'
summary(object, hessian = FALSE,
hessianMethod = "tsHessian", ...)
## S3 method for class 'summary.nigFit'
print(x,
digits = max(3, getOption("digits") - 3), ...)
object |
An object of class |
hessian |
Logical. If |
hessianMethod |
The two-sided Hessian approximation given by
|
x |
An object of class |
digits |
The number of significant digits to use when printing. |
... |
Further arguments passed to or from other methods. |
If hessian = FALSE
no calculations are performed, the class of
object
is simply changed from nigFit
to
summary.nigFit
so that it can be passed to
print.summary.nigFit
for printing in a convenient form.
If hessian = TRUE
the Hessian is calculated via a call to
nigHessian
and the standard errors of the parameter
estimates are calculated using the Hessian and these are added to the
original list object
. The class of the object
returned is again changed to summary.nigFit
.
summary.nigFit
returns a list comprised of the original
object object
and additional elements hessian
and
sds
if hessian = TRUE
, otherwise it returns the original
object. The class of the object returned is changed to
summary.nigFit
.
See nigFit
for the composition of an object of class
nigFit
.
If the Hessian and standard errors have not been added to the object
x
, print.summary.nigFit
prints a summary in the same
format as print.nigFit
. When the Hessian and standard
errors are available, the Hessian is printed and the standard errors
for the parameter estimates are printed in parentheses beneath the
parameter estimates, in the manner of fitdistr
in the package
MASS
.
David Scott d.scott@auckland.ac.nz, Christine Yang Dong c.dong@auckland.ac.nz
nigFit
, summary
, nigHessian
.
### Continuing the nigFit(.) example:
param <- c(2, 2, 2, 1)
dataVector <- rnig(500, param = param)
fit <- nigFit(dataVector, method = "BFGS")
print(fit)
summary(fit, hessian = TRUE, hessianMethod = "tsHessian")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.