Learn R Programming

cwhmisc (version 6.0)

invgauss: Inverse Gaussian Distribution

Description

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

Usage

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

References

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

Examples

Run this code
n <- 10;

Run the code above in your browser using DataLab