Mixed Effects Models for Complex Data