rvvar {rv}R Documentation

Variances of Components of Random Vectors

Description

Computes variances of the simulations of components of a random vector of array.

Usage

  rvvar(x, ...)

Arguments

x an object
... further arguments passed to var

Details

rvvar computes the means of the simulations of all individual components of a random vector (rv) object.

That is, rvvar applies the function var to the vector of simulations of each component of x, thus computing "columnwise" variances of the matrix of simulations of x.

Value

A numeric vector or array (of the same dimension as that of x)

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

See Also

rvmin, rvmax, rvmedian, rvsd.

Examples

  x <- rvnorm(mean=0, var=1:10)
  print(rvvar(x))

[Package rv version 0.949 Index]