SpatialPanelMl: maximum likelihood spatial lag, error and Durbin
panel models with individual, time or two-way fixed effects, or pooled
(Elhorst), with the optional Lee-Yu variance correction.
SpatialPanelReLag: random-effects spatial lag model (Elhorst 2003).
InformationCriteria: AIC, AICc and BIC. Rows are stacked by period.
Identical to the Python arm morie.fn.sppanel.
Arguments
- y
Response.
- X
Regressor matrix (no intercept).
- W
Spatial weights (N by N).
- n_units
Number of units N.
- model
"lag","error"or"durbin".- effects
"individual","time","twoways"or"pooled".- lee_yu
Apply the Lee-Yu variance correction.
- interval
Search interval of the spatial parameter.
- tol, maxit
Convergence controls.
- loglik
Log-likelihood.
- k
Number of parameters.
- n
Number of observations.
