Rev 24300 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{Cauchy}\alias{Cauchy}\alias{dcauchy}\alias{pcauchy}\alias{qcauchy}\alias{rcauchy}\title{The Cauchy Distribution}\description{Density, distribution function, quantile function and randomgeneration for the Cauchy distribution with location parameter\code{location} and scale parameter \code{scale}.}\usage{dcauchy(x, location = 0, scale = 1, log = FALSE)pcauchy(q, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)qcauchy(p, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)rcauchy(n, location = 0, scale = 1)}\arguments{\item{x, q}{vector of quantiles.}\item{p}{vector of probabilities.}\item{n}{number of observations. If \code{length(n) > 1}, the lengthis taken to be the number required.}\item{location, scale}{location and scale parameters.}\item{log, log.p}{logical; if TRUE, probabilities p are given as log(p).}\item{lower.tail}{logical; if TRUE (default), probabilities are\eqn{P[X \le x]}{P[X <= x]}, otherwise, \eqn{P[X > x]}{P[X > x]}.}}\value{\code{dcauchy}, \code{pcauchy}, and \code{qcauchy} are respectivelythe density, distribution function and quantile function of the Cauchydistribution. \code{rcauchy} generates random deviates from theCauchy.}\details{If \code{location} or \code{scale} are not specified, they assumethe default values of \code{0} and \code{1} respectively.The Cauchy distribution with location \eqn{l} and scale \eqn{s} hasdensity\deqn{f(x) = \frac{1}{\pi s}\left( 1 + \left(\frac{x - l}{s}\right)^2 \right)^{-1}%}{f(x) = 1 / (pi s (1 + ((x-l)/s)^2))}for all \eqn{x}.}\references{Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)\emph{The New S Language}.Wadsworth \& Brooks/Cole.}\seealso{\code{\link{dt}} for the t distribution which generalizes\code{dcauchy(*, l = 0, s = 1)}.}\examples{dcauchy(-1:4)}\keyword{distribution}