agp.test performs Alvandi's generalized p-value. This test assumes normality within each group and provides an alternative to one-way ANOVA when variances are unequal. The p-value is obtained by comparing the observed Cochran's test statistic with the reference distribution calculated using Monte Carlo simulation.