# Example 1: testing the inverse Gaussian distribution hypothesis using "transf"
# option on the compressive strength variable of the strength data set.
data("strength")
y <- strength$cstrength # compressive strength
ig.test(y, method = "transf")
# Getting the p-value of the test based on a transformation to gamma variables
ig.test(y)[[2]]$p.value
# Example 2: testing the inverse Gaussian distribution hypothesis using "ratio"
# option on a simulated data set.
x <- rlnorm(500) # simulating a random sample from the lognormal distribution
ig.test(x, method = "ratio")
Run the code above in your browser using DataLab