Moran(1951) gave a statistic for testing the goodness-of-fit of a
random sample of \(x\)-values to a continuous univariate
distribution with cumulative distribution function
\(F(x,\theta)\), where \(\theta\) is a vector of known
parameters. This function implements the Cheng and Stephens(1989)
extended Moran test for unknown parameters.
The test statistic is
$$T(\hat \theta)=(M(\hat
\theta)+1/2k-C_1)/C_2$$
Where \(M(\hat \theta)\), the Moran statistic, is
$$M(\theta)=-(log(y_1-y_0)+log(y_2-y_1)+...+log(y_m-y_{m-1}))$$
M(theta)=-(log(y_1-y_0)+log(y_2-y_1)+...+log(y_m-y_m-1))
This test has null hypothesis:
\(H_0\) : a random sample of \(n\) values of \(x\) comes
from distribution \(F(x, \theta)\), where
\(\theta\) is the vector of parameters.
Here \(\theta\) is expected to be the maximum
likelihood estimate \(\hat \theta\), an efficient
estimate. The test rejects \(H_0\) at significance level
\(\alpha\) if \(T(\hat \theta)\) >
\(\chi^2_n(\alpha)\).