rvcov: Covariance Between Components of Random Vectors

View source: R/rvcov.R

rvcovR Documentation

Covariance Between Components of Random Vectors

Description

rvcov

Usage

rvcov(x, y = NULL, ...)

Arguments

x

a random vector

y

(optional) a random vector

...

further arguments passed to or from other methods

Details

rvcov

Value

A covariance matrix.

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


  x <- rvnorm(mean=1:3)
  y <- rvnorm(mean=2:4)
  rvcov(x,y)
  rvcov(x,x)


rv documentation built on March 18, 2022, 5:55 p.m.