summary.rv {rv} | R Documentation |
Gives a numerical summary of the random variable in the format of a data frame.
## 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, ...)
object |
object to summarize |
all.levels |
show summary for all levels even if there are too many to display in one line |
... |
rv object |
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.
Jouni Kerman jouni@kerman.com
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")
.
x <- rvarray(rvnorm(6), c(2,3)) summary(x) summary(as.rvsummary(x)) summary(rvfactor(trunc(x)))