Learn R Programming

rv (version 0.949)

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

Value

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

Details

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

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