Using latent representations to link disjoint longitudinal data for mixed-effects regression