Learn R Programming

FAdist (version 2.0)

KAPPA4: Four-Parameter Kappa Distribution

Description

Density, distribution function, quantile function and random generation for the four-parameter kappa distribution with shape1, shape2, scale, and location parameters equal to shape1, shape2, scale, and location, respectively.

Usage

dkappa4(x,shape1,shape2,scale=1,location=0,log=FALSE)
pkappa4(q,shape1,shape2,scale=1,location=0,lower.tail=TRUE,log.p=FALSE)
qkappa4(p,shape1,shape2,scale=1,location=0,lower.tail=TRUE,log.p=FALSE)
rkappa4(n,shape1,shape2,scale=1,location=0)

Arguments

x,q
vector of quantiles.
p
vector of probabilities.
n
number of observations.
shape1
shape parameter.
shape2
shape parameter.
scale
scale parameter.
location
location parameter.
log,log.p
logical; if TRUE, probabilities p are given as log(p).
lower.tail
logical; if TRUE (default), probabilities are P[X <= x]<="" em="">,otherwise, P[X > x].

Value

  • dkappa4 gives the density, pkappa4 gives the distribution function, qkappa4 gives the quantile function, and rkappa4 generates random deviates.

Details

See References

References

Hosking, J.R.M. (1994). The four-parameter kappa distribution. IBM Journal of Research and Development, 38(3), 251-258.

Examples

Run this code
x <- rkappa4(1000,.1,.2,12,110)
hist(x,freq=FALSE,col='gray',border='white')
curve(dkappa4(x,.1,.2,12,110),add=TRUE,col='red4',lwd=2)

Run the code above in your browser using DataLab