aranda: The Aranda distribution

Description Usage Arguments Details Value References Examples

Description

Density, distribution function, quantile function and random generation function for the Aranda distribution.

Usage

1
2
3
4
 daranda(x, alpha)
 paranda(q, alpha)
 qaranda(p, alpha)
 raranda(n, alpha)

Arguments

x, q

vector of quantiles.

p

vector of probabilities.

n

number of observations.

alpha

shape parameter.

Details

The Aranda distribution with parameter alpha has density given by

f(x) = exp(x)*((alpha*exp(x) + 1)^(-1/alpha - 1))

for alpha > 0.

Value

'daranda' gives the density, 'paranda' gives the distribution function, 'qaranda' gives the quantile function, and 'raranda' generates random deviates.

References

Aranda-Ordaz, F. J. (1981) On two families of transformations to additivity for binary response data. Biometrika, 68(2):357-363.

Examples

1
2
3
4
5
  set.seed(1234)
  alpha <- 2
  x <- seq(-5,5,0.01)
  y <- paranda(x,alpha)
  plot(x,y,type='l',xlab='x',ylab='paranda')

dnzmarcio/binreg documentation built on May 15, 2019, 9:41 a.m.