Analysis of repeated measurements with missing data