rvcauchy: Generate Random Variables from a Cauchy Sampling Model

rvcauchyR Documentation

Generate Random Variables from a Cauchy Sampling Model

Description

Random vector generation for the Cauchy distribution.

Usage

rvcauchy(n = 1, location = 0, scale = 1)

Arguments

n

integer: number of variables to generate

location

location parameter (may be random)

scale

scale parameter (may be random)

Details

For details on the Cauchy distribution, see Cauchy. See also rvt; Cauchy is a special case of the t-distribution with 1 degree of freedom, and therefore rvcauchy(n,location,scale) is equivalent to rvt(n, mu, scale, df=1).

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").


rv documentation built on March 18, 2022, 5:55 p.m.