funcs: Amoroso distribution functions

Description Usage Arguments References Examples

Description

damoroso computes the density of the Amoroso function. damoroso_r computes the density of the Amoroso function with R based code.

Usage

1
damoroso(x, a, theta, alpha, beta, give_log=FALSE)

Arguments

x

vector of quantiles.

a

a parameter.

theta

theta parameter.

alpha

alpha parameter.

beta

beta parameter.

give_log

if true, the function returns the log of the density.

References

Crooks, G. E. (2010). The amoroso distribution. arXiv preprint.

Examples

1
2
3
4
5
6
7
8
9
# compare r and c function
x <- seq(0, 3, by=.01)
data <- damoroso(x, a=0, theta=1, alpha=1, beta=5)
data_r <- damoroso_r(x, a=0, theta=1, alpha=1, beta=5)

x11()
plot(density(data_r), xlim=c(0,3), main='R function')
x11()
plot(density(data), xlim=c(0,3), main='C function')

yeagle/RAmoroso documentation built on May 4, 2019, 2:32 p.m.