The SPATIALREG Procedure

Linear Regression Models

You can also fit a linear regression model in PROC SPATIALREG. In this case, let y Subscript i denote the observation associated with the spatial unit bold s Subscript i for i equals 1 comma 2 comma ellipsis comma n. Further, let bold x Subscript i be a p times 1 vector that denotes values of p regressors recorded at unit bold s Subscript i.

The linear regression model can be described in vector form as

where bold y equals left-parenthesis y 1 comma y 2 comma ellipsis comma y Subscript n Baseline right-parenthesis prime and bold-italic epsilon equals left-parenthesis epsilon 1 comma epsilon 2 comma ellipsis comma epsilon Subscript n Baseline right-parenthesis prime, with epsilon Subscript i Baseline tilde Overscript normal i normal i normal d Endscripts upper N left-parenthesis 0 comma sigma squared right-parenthesis. Moreover, bold upper X is an n times p matrix that has bold x prime Subscript i in each row.

The log-likelihood function for the linear regression model is

For the linear regression model, the gradients are

The Hessians take the following forms:

Last updated: August 11, 2020