Numerical Summary of a Random Variable

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.