Analysis of biased sampling designs using longitudinal data