Clustering Trajectories of a Three-Way Longitudinal Dataset.