rvchisq: Generate Random Variables from a Chi-Square Sampling Model

Description Usage Arguments Details Value Author(s) References Examples

Description

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

Usage

1
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 jouni@kerman.com

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").

Examples

1
 rvchisq(1, df = 3)

jsta/rv documentation built on Feb. 12, 2022, 5:13 p.m.