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
Output 32.3.2: Parameter Estimates of SEM Model
Copyright © SAS Institute Inc. All rights reserved.
Last updated: August 25, 2017