rv (version 2.3.4)

summary.rv: Numerical Summary of a Random Variable

Description

Gives a numerical summary of the random variable in the format of a data frame.

Usage

# S3 method for rv
summary(object, ...)

Arguments

object

object to summarize

rv object

all.levels

show summary for all levels even if there are too many to display in one line

Details

The objects are first coerced to rvsummary objects, then passed on to the summary.rvsummary method, which creates a nicely formatted data frame of the object.

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").

Examples

Run this code
# NOT RUN {
  x <- rvarray(rvnorm(6), c(2,3))
  summary(x)
  summary(as.rvsummary(x))
  summary(rvfactor(trunc(x)))
  
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab