楼主: wanghan2010
5748 6

[实际应用] 求助 如何用matlab的morans_I函数计算局部morans I指数? [推广有奖]

  • 1关注
  • 4粉丝

已卖:175份资源

讲师

5%

还不是VIP/贵宾

-

TA的文库  其他...

经管读书

威望
0
论坛币
1389 个
通用积分
0.0600
学术水平
2 点
热心指数
6 点
信用等级
2 点
经验
351 点
帖子
289
精华
0
在线时间
481 小时
注册时间
2010-9-23
最后登录
2024-6-29

楼主
wanghan2010 学生认证  发表于 2014-5-21 13:10:06 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
已知有13个地区,它们的人均GDP为A=[26998;30840;34892;41099;45444;50467;58204;64491;66940;73856;81658;87475;19141;]

临界矩阵为
W=[0,1,0,0,1,0,1,0,1;1,0,0,1,1,0,0,1,0;0,0,0,0,0,0,1,0,0;0,1,0,0,0,1,0,0,0;1,1,0,0,0,0,1,1,0;0,0,0,1,0,0,0,0,0;1,0,1,0,1,0,0,1,1;0,1,0,0,1,0,1,0,0;1,0,0,0,0,0,1,0,0;1,0,0,1,0,1,0,0,0;0,0,0,0,0,0,0,0,0;0,0,1,0,0,0,0,0,0;0,0,1,0,0,0,1,1,0;]

然后我找到了Moran_I指数的函数
HELP morans_I
  PURPOSE: calculate global Moran's I for an input grid (matrix) by calculating all
           local Moran's I for a given moving windows size using a weight matrix.
  -------------------------------------------------------------------
  USAGE: M = moransI(grid, W, s);
  where: [grid] is the matrix to analyse
         [W] is the normalized weight matrix of the size the local Moran's
             I will be calculated for (uneven sized!)
         [s] is an optional flag to use zscores of input values for
         calculation. Set to 'true' if zscores of local grid should be
         calculated. Leave blank if not desired or input values are already
         standardized.
  -------------------------------------------------------------------------
  OUTPUTS:
         [M] matrix of all local Moran's I
  -------------------------------------------------------------------
  NOTES: Weight matrix needs to be 'moving window' style, not contiguity
         matrix: Moran's I is calculated and weighted for neighbours to center cell.
         Matrix needs to be normalized (weights sum to 1) and center cell weight
         will be set to 0 if not already. Uses localmoran.m
         -> Use nanmean(M(:)) to get the average global Moran's I.

  See Anselin (1995, 'LISA.', Geogr. Analysis 27(2),p.93f) for details on
  standardized variables in calculation of local Moran's I.

  EXAMPLE:  M = moransI(rand(20,20),ones(5,5),'true')

  Felix Hebeler, Geography Dept.,de University Zurich, March 2006.



请问使用M=Morans_I(A,W,'ture')计算吗?为什么算出来都是NaN?
求大神帮助

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:MATLAB moran atlab matla ans 如何 人均GDP windows matlab moving

moransI.zip
下载链接: https://bbs.pinggu.org/a-1558725.html

2.53 KB

指数计算

本附件包括:

  • moransI.m
  • morans_I.m

沙发
24578901 在职认证  发表于 2014-5-28 13:02:15
哈哈,以前完全不知道什么是moran指数的情况下,帮人家算过,不过不记得了

藤椅
wanghan2010 学生认证  发表于 2014-5-30 15:37:55
24578901 发表于 2014-5-28 13:02
哈哈,以前完全不知道什么是moran指数的情况下,帮人家算过,不过不记得了
用其他软件算出来了

板凳
葫芦娃大王 学生认证  发表于 2014-7-5 20:49:55
请问楼主计算moran i的程序包是从哪里得到的啊?谢谢

报纸
wanghan2010 学生认证  发表于 2014-7-7 00:12:14
葫芦娃大王 发表于 2014-7-5 20:49
请问楼主计算moran i的程序包是从哪里得到的啊?谢谢
百度下的。。我也不记得了。。建议你用geoda或者arcgis做~matlab我也不会做~

地板
木头人3210 发表于 2015-9-21 10:35:10
wanghan2010 发表于 2014-7-7 00:12
百度下的。。我也不记得了。。建议你用geoda或者arcgis做~matlab我也不会做~
用geoda做数据要转化为shape文件,怎么转化呢?谢谢

7
3367567208 学生认证  发表于 2017-12-4 19:36:17
wanghan2010 发表于 2014-7-7 00:12
百度下的。。我也不记得了。。建议你用geoda或者arcgis做~matlab我也不会做~
你好,我想问一下楼主通过Geoda求解莫兰指数可以进行显著性检验并且画出相对应的散点图吗?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-22 13:37