KAPPA4: Four-Parameter Kappa Distribution

Description Usage Arguments Details Value References Examples

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

1
2
3
4
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],otherwise, P[X > x].

Details

See References

Value

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

References

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

Examples

1
2
3
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)

Example output



FAdist documentation built on April 17, 2020, 1:24 a.m.