☑ This topic is solved.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 03-26-2023 05:51 AM
(1355 views)
SIMILAR TO GEODA SOFTWARE, FIRST MAKE GEOSPATIAL WEIGHTS FOR THE MAP, AND THEN ADD DATA TO DIRECTLY CALCULATE MORAN'S I AND LOCAL MORAN, I WANT TO DO THE SAME IN PROC VARIOGRAM, BUT I CAN'T FIND THE RELEVANT OPTIONS AND SETTINGS, WHAT SHOULD I DO? PLEASE!!!
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Usage Note 22944: Computing Moran's I and Geary's c spatial autocorrelation coefficients
https://support.sas.com/kb/22/944.html
Koen
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
/*Write a binary neighbor queen space weight matrix*/
DATA WEIGHT;
LENGTH CITY $10.;
INFILE DATALINES DLM=',';
INPUT CITY Nanning Liuzhou Guilin Wuzhou Beihai Fangchen Qinzhou
Guigang Yulin Baise Hezhou Hechi Laibin Congzuo @@
;
DATALINES;
Nanning,0,0,0,0,0,1,1,1,0,1,0,1,1,1
Liuzhou,0,0,1,0,0,0,0,0,0,0,0,1,1,0
Guilin,0,1,0,1,0,0,0,0,0,0,1,0,1,0
Wuzhou,0,0,1,0,0,0,0,1,1,0,1,0,1,0
Beihai,0,0,0,0,0,0,1,0,1,0,0,0,0,0
Fangcheng,1,0,0,0,0,0,1,0,0,0,0,0,0,1
Qinzhou,1,0,0,0,1,1,0,1,1,0,0,0,0,0
Guigang,1,0,0,1,0,0,1,0,1,0,0,0,1,0
Yulin,0,0,0,1,1,0,1,1,0,0,0,0,0,0
Baise,1,0,0,0,0,0,0,0,0,0,0,1,0,1
Hezhou,0,0,1,1,0,0,0,0,0,0,0,0,0,0
Hechi,1,1,0,0,0,0,0,0,0,1,0,0,1,0
Laibin,1,1,1,1,0,0,0,1,0,0,0,1,0,0
Congzuo,1,0,0,0,0,1,0,0,0,1,0,0,0,0
;
如何将此空间权重矩阵中的数据添加到PROC变异函数以计算MORAN'S I以验证空间自相关
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Usage Note 22944: Computing Moran's I and Geary's c spatial autocorrelation coefficients
https://support.sas.com/kb/22/944.html
Koen
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The problem has been solved. Thank you very much for your answer