Density, distribution function and random generation for the ArcSin distribution.
dasin(x, log=FALSE)
pasin(q, lower.tail=TRUE, log.p=FALSE)
rasin(n)
dasin gives the density, pasin gives the distribution function, and rasin generates random deviates. The length of the result is determined by n for rasin, and is the maximum of the lengths of the numerical arguments for the other functions. The numerical arguments other than n are recycled to the length of the result. Only the first elements of the logical arguments are used.
vector of quantiles.
number of observations. If length(n) > 1, the length is taken to be the number required.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE (default), probabilities are
Diego Gallardo
The ArcSin distribution has density
Arnold, B.C. and Groeneveld, R.A. (1980). Some Properties of the Arcsine Distribution. Journal of the Ammerican Statistical Association, 75, 173-175.
dasin(0.5)
pasin(0.5)
rasin(5)
Run the code above in your browser using DataLab