powered by
This function computes the gap statistic which is used to test for an outlier using Daniels method
gapstat(beta, pse)
returned gap statistic
input - vector of coefficients from saturated model fit to the data
input - Lenth's PSE statistic calculated from the elements of beta
John Lawson