Type : SASHELP
Les données proviennent de la table 'sashelp.thick' (épaisseur de veines de charbon avec coordonnées).
| 1 | title 'Spatial Correlation Analysis with PROC VARIOGRAM'; |
| 2 | |
| 3 | ods graphics on; |
| 4 | |
| 5 | /* Perform preliminary analysis --------------------------------*/ |
| 6 | |
| 7 | PROC VARIOGRAM DATA=sashelp.thick plots=pairs(thr=30); |
| 8 | compute novariogram nhc=20; |
| 9 | coordinates xc=East yc=North; |
| 10 | var Thick; |
| 11 | RUN; |
| 1 | /* Empirical SV (95% CL) ---------------------------------------*/ |
| 2 | |
| 3 | PROC VARIOGRAM DATA=sashelp.thick outv=outv; |
| 4 | compute lagd=7 maxlag=10 cl robust; |
| 5 | coordinates xc=East yc=North; |
| 6 | var Thick; |
| 7 | RUN; |
| 1 | PROC VARIOGRAM DATA=sashelp.thick outv=outv plots(only)=moran; |
| 2 | compute lagd=7 maxlag=10 autocorr(assum=random); |
| 3 | coordinates xc=East yc=North; |
| 4 | var Thick; |
| 5 | RUN; |
| 1 | /* Fit Gaussian model ------------------------------------------*/ |
| 2 | |
| 3 | PROC VARIOGRAM DATA=sashelp.thick outv=outv; |
| 4 | store out=SemivStoreGau / label='Thickness Gaussian WLS Fit'; |
| 5 | compute lagd=7 maxlag=10; |
| 6 | coordinates xc=East yc=North; |
| 7 | model form=gau cl / covb; |
| 8 | var Thick; |
| 9 | RUN; |
| 10 | |
| 11 | ods graphics off; |