Data preparation and diagnostics for random effects within estimator
