SGoF.01 (08/06/08): Added a procedure for randomization of equal p-values.
 
SGoF.02 (26/01/09): In the output file: Adjusted p-values added.
 
SGoF+ (23/06/2010): Incorporate the new adjustment method: SGoF+ (Carvajal-Rodríguez & de Uña-Alvarez, in preparation).
In addition, the estimation of q-values is also performed.
 
SGoF+ (29/09/2010) Minor update to correct a small bug. Rarely the estimated π0 value could be slightly higher than 1. This is now corrected.
 
SGoF+ (18/11/2010) Previous update introduced a bug. In SGoF+ method a bug occurred when the gamma happens to be minor than alpha. This is now corrected.
The possibility of distinguish between gamma and alpha has been added in the SGoF procedure. By default SGoF assumes gamma = alpha. Recall that SGoF+ looks for the gamma that maximizes the difference
between observations and expectations and performs a Kolmogorov-Smirnov test at the alpha level. Now in SgoF the user can select any a priori gamma and perform the corresponding binomial test at the alpha level. See details in the methods section.
 
SGoF+ (01/12/2010). π0 (proportion of true nulls) estimation method changed. The difference method has been substituted by a similar
but more sophisticated one: The standard deviation proportional bounding method (Meinshausen and Rice 2006). The Pound method has also been skipped.
 
SGoF+ (16/04/11). The bootstrap method could produce a π0 estimate being 0.
An automatic adjust in the range of the lambda parameter is now performed to avoid this.
Also a warning will be produced if any π0 estimate happened to be 0.