Learn R Programming

rv (version 2.3.1)

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

"summary"(object, ...) "summary"(object, all.levels=TRUE, ...)
"summary"(object, ...) "summary"(object, ...) "summary"(object, ...) "summary"(object, ...) "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.

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
  x <- rvarray(rvnorm(6), c(2,3))
  summary(x)
  summary(as.rvsummary(x))
  summary(rvfactor(trunc(x)))

Run the code above in your browser using DataLab