SMS: Analysis of longitudinal data