Skip to content
Prev 24829 / 29559 Next

SLX model for splm package in R

Dear Professor and colleagues,

Thank you for the response. X is a matrix and tb is a data.frame:
[1] "matrix"
[1] "data.frame"

I do not know how to apply slag to tb or X.

I also looked at spdep::create_WX and I understand its purpose is for "spatial simultaneous autoregressive error models", but in my case I just want a model such as:

y = beta1*X + beta2*WX + e

So, if anyone can give any help, I thank you again.

Daniel.

----- Mensagem original -----