Attributes structName
and noCorrelation
, with the values
of the corresponding arguments to the method function, are appended to
object
and its class is changed to summary.pdMat
.
# S3 method for pdMat
summary(object, structName, noCorrelation, …)
an object inheriting from class "pdMat"
, representing
a positive definite matrix.
an optional character string with a description of
the pdMat
class. Default depends on the method function:
"Blocked"
for pdBlocked
,
"Compound Symmetry"
for pdCompSymm
, "Diagonal"
for pdDiag
, "Multiple of an Identity"
for
pdIdent
,
"General Positive-Definite, Natural Parametrization"
for pdNatural
, "General Positive-Definite"
for pdSymm
, and data.class(object)
for pdMat
.
an optional logical value indicating whether
correlations are to be printed in print.summary.pdMat
. Default
depends on the method function: FALSE
for pdDiag
and
pdIdent
, and TRUE
for all other classes.
some methods for this generic require additional arguments. None are used in this method.
an object similar to object
, with additional attributes
structName
and noCorrelation
, inheriting from class
summary.pdMat
.
# NOT RUN {
summary(pdSymm(diag(4)))
# }
Run the code above in your browser using DataLab