invgauss: Inverse Gaussian Distribution

Description Usage Arguments Value Note Author(s) References Examples

Description

Density, cumulative probability, quantiles and random generation for the inverse Gaussian distribution.

Usage

1
2
3
  dinvgauss(x, mu = stop("no shape arg"), lambda = 1)
  pinvgauss(q, mu = stop("no shape arg"), lambda = 1)
  rinvgauss(n, mu = stop("no shape arg"), lambda = 1)

Arguments

n

Integer

q, x

Real

mu,lambda

positve array of integers, means and scaling parameter

Value

dinvgauss: Inverse Gaussian distribution function
pinvgauss: Random variates from inverse Gaussian distribution
rinvgauss: Quantiles of the inverse Gaussian distribution

Note

p(x) = sqrt(lambda/(2*pi*x^3))e^{-lambda(x-mu)^2/(2*x mu^2)}

Author(s)

Gordon Smyth, gks@maths.uq.edu.au, from sources of <paul.bagshaw@cnet.francetelecom.fr> e.a.

References

Chhikara and Folks, The Inverse Gaussian Distribution, Marcel Dekker, 1989. http://en.wikipedia.org/wiki/Inverse_Gaussian_distribution

Examples

1
  n <- 10; 

Example output

Loading required package: lattice
Loading required package: grid

cwhmisc documentation built on May 1, 2019, 7:55 p.m.