-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hello,
This is my first time raising an issue here, so please let me know if this isn’t the right way to propose this.
Feature request
When a model includes more than one spatial term, it would be useful to allow different spatial weight matrices for each term. This affects all GM_Combo* and ML_Combo* classes.
Motivation
An example of this is the SARAR (SAC) model where there may be a different spatial relationship for the dependent variable and the error term:
In the current implementation
As a concrete example of why this is an issue, I'm estimating a SARAR model to explore the drivers of agricultural land values. In the structural form above,
This feature is implemented in R through the spatialreg package, which I used for the current project. But I would have much preferred to keep the entire workflow in Python.
Potential API change
Backwards compatibility could be maintained by additional keyword arguments allowing you to specify an additional spatial weight matrix if you choose, with the first by default being the spatial weight matrix for the spatially lagged dependent variable.
GM_Combo(y, x, w, w_error=None)
Happy to hear thoughts on whether this would be useful for others.