Learn R Programming

goft (version 1.3.1)

ig.fit: Fitting the Inverse Gaussian distribution to data

Description

Maximum likelihood estimators for the Inverse Gaussian distribution based on a random sample.

Usage

ig.fit(x)

Arguments

x
a numeric data vector containing a random sample of positive real numbers.

Value

Parameter estimates.

See Also

ig.test for testing the Inverse Gaussian distribution hypothesis.

Examples

Run this code
x <-  rgamma(50, 10)   # simulating a random sample from the gamma distribution 
ig.fit(x)              # fitting an inverse Gaussian distribution to x                        

Run the code above in your browser using DataLab