for \(x > 0\), \(\mu > 0\), and \(\lambda > 0\) where \(\mu\) and \(\lambda\) are the location and scale parameters, respectively.
Usage
draw.inverse.gaussian(nrep,mu,lambda)
Arguments
nrep
Number of data points to generate.
mu
Location parameter for the desired inverse Gaussian distribution.
lambda
Scale parameter for the desired inverse Gaussian distribution.
Value
A list of length five containing generated data, the theoretical mean, the empirical mean, the theoretical variance, and the empirical variance with names y, theo.mean, emp.mean, theo.var, and emp.var, respectively.
References
Michael, J. R., William, R. S., & Haas, R. W. (1976). Generating random variates using transformations with multiple roots. The American Statistician, 30, 88-90.