The rvsummary
class provides a means to store a concise representation
of the marginal posterior distributions of the vector components.
By default, the 201 quantiles
0, 0.005, 0.01, 0.015, ..., 0.990, 0.995, 1
are saved for each vector component in an rvsummary
object. is.rvsummary
tests whether the object is an rvsummary
object;
as.rvsummary
coerces a random vector object to a rvsummary
object.
There following (generic) functions work with rvsummary
objects:
rvmean
,
rvsd
,
rvvar
,
rvquantile
,
rnsims
,
sims
,
and consequently any `rv-only' function that depends only on these functions
will work; e.g. is.constant
, which depends only on rvnsims
.
The method is.double
is provided for compatibility reasons;
this is needed in a function called by plot.rvsummary
The arithmetic operators and mathematical functions will not work with
rvsummary
objects.
The sims
method returns the quantiles.