Prediction and inverse estimation in repeated-measures models