I hope to fit the spatial autoregressive model : $$ y= \gamma_1 Wy + \gamma_2 By + X\beta +\epsilon. \quad (1) $$ where $W, B$ are different weight matrices. However, every references I've found only mention the SAR model that estimates one autocorrelation, i.e. $$ y= \gamma_1 Wy + X\beta +\epsilon ,$$ which can be fitted by using lagsarlm function in the R package spdep.
Therefore, I wonder if I could fit the model (1).