- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
** 创建空间权重矩阵介绍
*设置默认路径
cd C:\Users\xiubo\Desktop\F182013.v4\F101994\sheng
**创建新文件
*shp2dta:reads a shape (.shp) and dbase (.dbf) file from disk and converts them into Stata datasets.
*shp2dta:读取CHN_adm1文件
*CHN_adm1:为已有的地图文件
*database (chinaprovince):表示创建一个名称为“chinaprovince”的dBase数据集
*database(filename):Specifies filename of new dBase dataset
*coordinates(coord):创建一个名称为“coord”的坐标系数据集
*coordinates(filename):Specifies filename of new coordinates dataset
*gencentroids(stub):Creates centroid variables
*genid(newvarname):Creates unique id variable for database.dta
shp2dta using CHN_adm1,database (chinaprovince) coordinates(coord) genid(id) gencentroids(c)
**绘制2016年中國GDP分布圖
*spmap:Visualization of spatial data
*clnumber(#):number of classes
*id(idvar):base map polygon identifier(识别符,声明变量名,一般以字母或下划线开头,包含数字、字母、下划线)
*_2016GDP:变量
*coord:之前创建的坐标系数据集
spmap _2016GDP using coord, id(id) clnumber(5)
*更改变量名
rename x_c longitude
rename y_c latitude
**生成距离矩阵
*spmat:用于定义与管理空间权重矩阵
*Spatial-weighting matrices are stored in spatial-weighting matrix objects (spmat objects).
*spmat objects contain additional information about the data used in constructing spatial-weighting matrices.
*spmat objects are used in fitting spatial models; see spreg (if installed) and spivreg (if installed).
*idistance:(产生距离矩阵)create an spmat object containing an inverse-distance matrix W
*或 contiguity:create an spmat object containing a contiguity matrix W
*idistance_jingdu:命名名称为“idistance_jingdu”的距離矩陣
*longitude:使用经度
*latitude:使用纬度
*id(id):使用id
*dfunction(function[, miles]):(设置计算距离方法)specify the distance function.
*function may be one of euclidean (default), dhaversine, rhaversine, or the Minkowski distance of order p, where p is an integer greater than or equal to 1.
*normalize(row):(行标准化)specifies one of the three available normalization techniques: row, minmax, and spectral.
*In a row-normalized matrix, each element in row i is divided by the sum of row is elements.
*In a minmax-normalized matrix
您可能关注的文档
最近下载
- 2021届北京市海淀高三语文一模阅读部分讲评 课件(150张PPT).pptx
- 背负式风力灭火机的操作与使用 .ppt VIP
- 苏州七年级月考试卷及答案.doc VIP
- 山东科学技术版劳动实践指导手册三年级第11课公益劳动与志愿服务校园公益劳动清洁美化校园我行动 教案.docx VIP
- 2025年中级审计师测试题习题.docx VIP
- 一、毕业设计(论文)的目的和意义.doc VIP
- 四川大学软件学院2008级毕业设计启动会课程设计.ppt VIP
- 2025全科医生考试题及答案.docx VIP
- 大班科学标准教案小油滴不见了.pptx VIP
- 2024年隆昌市兴诚投资集团有限公司人员招聘考试题库及答案解析.docx VIP
文档评论(0)