The SPATIALREG Procedure

Example 32.3 Fitting Multiple Models

(View the complete code for this example.)

You can fit more than one model by making only one call to PROC SPATIALREG. For example, if you want to fit both SAR and SEM models to the CRIMEOH data set, you can use the following statements:

 proc spatialreg data=crimeoh Wmat=crimeWmat NONORMALIZE;
   model crime=income hvalue / type=SAR;
   model crime=income hvalue / type=SEM;
 run;

The parameter estimates for the SAR and SEM models are shown in Output 32.3.1 and Output 32.3.2, respectively.

Output 32.3.1: Parameter Estimates of SAR Model

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept145.0770707.8705905.73<.0001
income1-1.0315310.328403-3.140.0017
hvalue1-0.2659240.088218-3.010.0026
_rho10.4310200.1235943.490.0005
_sigma2195.48706619.5063124.90<.0001


Output 32.3.2: Parameter Estimates of SEM Model

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept159.8919085.88410410.18<.0001
income1-0.9413010.370267-2.540.0110
hvalue1-0.3022530.090552-3.340.0008
_lambda10.5617800.1524133.690.0002
_sigma2195.57211520.0374174.77<.0001


Last updated: August 25, 2017