asin {skewunit}R Documentation

The ArcSin distribution.

Description

Density, distribution function and random generation for the ArcSin distribution.

Usage

dasin(x, log=FALSE)
pasin(q, lower.tail=TRUE, log.p=FALSE)
rasin(n)

Arguments

x, q

vector of quantiles.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

log, log.p

logical; if TRUE, probabilities p are given as log(p).

lower.tail

logical; if TRUE (default), probabilities are P[X\leq x], otherwise, P[X>x].

Details

The ArcSin distribution has density

f(x)=\frac{1}{\pi \sqrt{x(1-x)}}, \quad x \in (0,1),

and cumulative distribution function

F(x)=\frac{2}{\pi}Arcsin(\sqrt{x}), \quad x \in (0,1).

Value

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.

Author(s)

Diego Gallardo

References

Arnold, B.C. and Groeneveld, R.A. (1980). Some Properties of the Arcsine Distribution. Journal of the Ammerican Statistical Association, 75, 173-175.

Examples

dasin(0.5)
pasin(0.5)
rasin(5)

[Package skewunit version 1.0 Index]