cweib: The Reflected Weibull distribution, for binary regression

Description Usage Arguments Details Value References Examples

Description

Density, distribution function, quantile function and random generation function for the Reflected Weibull distribution with one parameter.

Usage

1
2
3
4

Arguments

x, q

vector of quantiles.

p

vector of probabilities.

n

number of observations.

gamma

shape parameter.

Details

The Reflected Weibull distribution with parameter gamma has density given by

f(x) = gamma*((-x)^(gamma - 1))*exp(-x^gamma)

for x < 0 and gamma > 0.

Value

'dcweib' gives the density, 'pcweib' gives the distribution function, 'qcweib' gives the quantile function, and 'rcweib' generates random deviates.

References

Rinne, H. (2009). The Weibull distribution : a handbook. Boca Raton, CRC Press.

Examples

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

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