Smooth transition from mixed to fixed effects models