summary2.rv: Numerical Summary of a Random Variable

Description Usage Arguments Details Author(s) References Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  ## S3 method for class 'rv'
summary(object, ...)
  ## S3 method for class 'rvfactor'
summary(object, all.levels=TRUE, ...)

  ## S3 method for class 'rvsummary'
summary(object, ...)
  ## S3 method for class 'rvsummary_numeric'
summary(object, ...)
  ## S3 method for class 'rvsummary_integer'
summary(object, ...)
  ## S3 method for class 'rvsummary_logical'
summary(object, ...)
  ## S3 method for class 'rvsummary_rvfactor'
summary(object, all.levels=TRUE, ...)

Arguments

object

object to summarize

all.levels

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

...

rv object

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

1
2
3
4


Search within the rv package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.