Tools for linear grouping analysis (LGA)