Learn R Programming

goft (version 1.3.6)

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
# NOT RUN {
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