@cache_readonly
    def fittedvalues(self):
        fit = np.dot(self.model.exog, self.fe_params)
        re = self.random_effects
        for group_ix, group in enumerate(self.model.group_labels):
            ix = self.model.row_indices[group]

            mat = []
            if self.model.exog_re_li is not None:
                mat.append(self.model.exog_re_li[group_ix])
            for c in self.model._vc_names:
                if group in self.model.exog_vc[c]:
                    mat.append(self.model.exog_vc[c][group])
            mat = np.concatenate(mat, axis=1)

            fit[ix] += np.dot(mat, re[group])

        return fit
Initialize group for all tracked devices.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/regression/mixed_linear_model.py/MixedLMResults.fittedvalues--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/device_tracker/__init__.py/DeviceTracker.setup_group