diff --git a/mgwr/gwr.py b/mgwr/gwr.py index 9ee30c6..3027bce 100755 --- a/mgwr/gwr.py +++ b/mgwr/gwr.py @@ -210,7 +210,7 @@ def __init__(self, coords, y, X, bw, family=Gaussian(), offset=None, """ Initialize class """ - GLM.__init__(self, y, X, family, constant=constant) + GLM.__init__(self, y, X, family, constant=constant, offset=offset) self.constant = constant self.sigma2_v1 = sigma2_v1 self.coords = np.array(coords) diff --git a/mgwr/summary.py b/mgwr/summary.py index d3b58e7..8cc57e7 100755 --- a/mgwr/summary.py +++ b/mgwr/summary.py @@ -15,7 +15,7 @@ def summaryModel(self): def summaryGLM(self): XNames = ["X" + str(i) for i in range(self.k)] - glm_rslt = GLM(self.model.y, self.model.X, constant=False, + glm_rslt = GLM(self.model.y, self.model.X, constant=False, offset=self.model.offset, family=self.family).fit() summary = "%s\n" % ('Global Regression Results')