Learn R Programming

rv (version 0.949)

rvconst: 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

Value

  • A random vector (rv object) of length n.

Details

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

References

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

Examples

Run this code
#

Run the code above in your browser using DataLab