weib: The Weibull distribution, for binary regression

Description Usage Arguments Details Value References Examples

Description

Density, distribution function, quantile function and random generation function for the 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 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

'dweib' gives the density, 'pweib' gives the distribution function, 'qweib' gives the quantile function, and 'rweib' generates random deviates.

References

Caron, R. and Polpo, A. (2009) Binary data regression: Weibull distribution. In: Aip Conference Proceedings, volume 1193, ed. Goggans, P. M. and Chan, C. Y.

Examples

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

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