rvconst {rv}R Documentation

Random Vector with a Point-Mass Distribution

Description

Coerces a given vector of constants into a random vector with 1 simulation in each component.

Usage

rvconst(n=1,x)

Arguments

n integer: number of variables to generate
x a vector of constants

Details

Coerces a given vector of constants into a random vector with 1 simulation in each component.

Value

A random vector (rv object) of length n.

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.

Examples

  #

[Package rv version 0.911 Index]