View source: R/summary.nlFit.R
summary.nlFit | R Documentation |
summary
Method for class "nlFit"
.
## S3 method for class 'nlFit'
summary(object, ...)
## S3 method for class 'summary.nlFit'
print(x,
digits = max(3, getOption("digits") - 3), ...)
object |
An object of class |
x |
An object of class |
digits |
The number of significant digits to use when printing. |
... |
Further arguments passed to or from other methods. |
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.
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
.
nlFit
, summary
.
## Continuing the nlFit() example:
param <- c(2, 2, 1, 1)
dataVector <- rnl(500, param = param)
fit <- nlFit(dataVector, hessian = TRUE)
print(fit)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.