pplbench/ppls/jags/n_schools.py [29:38]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        attrs: dict = self.attrs.copy()
        attrs["Y"] = data.Y.values
        attrs["sigma"] = data.sigma.values
        # indices in JAGS are 1-based
        # note: we are not doing in place increments because we shouldn't
        # modify the arrays that are passed in
        attrs["state_idx"] = attrs["state_idx"] + 1
        attrs["district_idx"] = attrs["district_idx"] + 1
        attrs["type_idx"] = attrs["type_idx"] + 1
        return attrs
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pplbench/ppls/stan/n_schools.py [27:36]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        attrs: dict = self.attrs.copy()
        attrs["Y"] = data.Y.values
        attrs["sigma"] = data.sigma.values
        # indices in Stan are 1-based
        # note: we are not doing in place increments because we shouldn't
        # modify the arrays that are passed in
        attrs["state_idx"] = attrs["state_idx"] + 1
        attrs["district_idx"] = attrs["district_idx"] + 1
        attrs["type_idx"] = attrs["type_idx"] + 1
        return attrs
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



