rvchisq {rv}R Documentation

Generate Random Variables from a Chi-Square Sampling Model

Description

Generates a random vector from a chi-square sampling model.

Usage

  rvchisq(n=1, df, ncp = 0)

Arguments

n number of variables to generate
df integer, degrees of freedom, may be random
ncp non-centrality parameter, may be random

Details

If any of the arguments are random, the resulting simulations may have non-Poisson marginal distributions.

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.925 Index]