Classification of longitudinal data through a semiparametric mixed-effects model based on lasso-type estimators