rvnorm: Generate Random Variables from a Gaussian (Normal) Sampling Model
Description
Generates a random vector from a Gaussian sampling model.
Usage
rvnorm(n=1, mean=0, sd=1, var=NULL, precision)
Arguments
n
integer: number of variables to generate
mean
mean, may be a rv
sd
standard deviation; scalar or vector (constant or rv, not matrix)
var
variance, can be given instead of sd. Scalar, vector, or matrix.
precision
inverse variance or variance matrix, may be given instead of sd or var
Value
A random vector (rv object) of length n.
References
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.