SPATIALREG Procedure

SPATIALEFFECTS Statement

  • SPATIALEFFECTS <model-spatial-effect-regressors> </options>;

The SPATIALEFFECTS statement enables you to specify covariates (such as X) whose spatial lag, WX, is to be added to the MODEL statement.

PROC SPATIALREG adds the spatially weighted model-spatial-effect-regressors to regressors that are specified in the MODEL statement. For example, if you specify q variables z 1 comma ellipsis comma z Subscript q Baseline in the SPATIALEFFECTS statement, then each of q spatially weighted variables, as represented by each column of bold upper W bold upper Z, has a parameter to be included in the regression. Here, bold upper W bold upper Z denotes the matrix product of bold upper W and bold upper Z. In addition, bold upper Z is the design matrix formed by the q variables z 1 comma ellipsis comma z Subscript q Baseline. The spatial weights matrix bold upper W comes from the data set that is specified in the WMAT= option. The "Parameter Estimates" table in the displayed output shows the estimates for spatially weighted model-spatial-effect-regressors; they are labeled with the prefix "W_". For example, if you specify z (a variable in your primary data set) as a spatial effect explanatory variable, then the "Parameter Estimates" table labels the corresponding parameter estimate "W_z".

Last updated: June 19, 2025