DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Declaration: GrubbsCriticalValues (NData: integer; alpha: double; twosided: boolean): double;
The function GrubbsCriticalValues returns the critical values of the distribution of the Grubbs test statistic. The parameter NData specifies the number of data. It must be greater than 3. The parameter alpha specifies the level of significance (valid range: >0 and <1). If the number of data NData or the level of significance is invalid the function returns a value of -1. The parameter twosided determines whether the test is one-sided or two-sided.