summary.rv: Numerical Summary of a Random Variable

summary.rvR Documentation

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 class '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.

Author(s)

Jouni Kerman jouni@kerman.com

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

## Not run: 

  x <- rvarray(rvnorm(6), c(2,3))
  summary(x)
  summary(as.rvsummary(x))
  summary(rvfactor(trunc(x)))
  
## End(Not run)


rv documentation built on March 18, 2022, 5:55 p.m.