楼主: 落叶无雨
31048 96

[MATLAB] 空间计量经济学软件代码资源集锦(Matlab/R/Python/SAS/Stata)   [推广有奖]

教授

3%

还不是VIP/贵宾

-

威望
0
论坛币
31 个
通用积分
119.7218
学术水平
72 点
热心指数
85 点
信用等级
63 点
经验
7505 点
帖子
423
精华
1
在线时间
1527 小时
注册时间
2011-10-22
最后登录
2024-4-10

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
欢迎大家留言补充相关代码资源!

也请大家能够分享给更多的同学!


如需《面板空间计量之Stata应用:学习笔记》配套数据,
或者在实际操作中遇到的疑难问题(不含基本操作问题),

可邮件发送至:ares0825@163.com

来信请注明学校(专业)和姓名。






1)Matalb 代码资源:
Elhorst J.P.: https://spatial-panels.com/software/
James P. LeSage:https://www.spatial-econometrics.com/
Donald J. Lacombe:http://myweb.ttu.edu/dolacomb/matlab.html

2)R代码资源:

CRAN Task View:https://cran.r-project.org/web/views/Spatial.html

3)Python代码资源:

PySAL: https://pysal.readthedocs.io/en/latest/users/tutorials/index.html

4)Stata代码资源:

具体操作详见论坛里的《面板空间计量之stata应用:学习笔记》:https://bbs.pinggu.org/thread-4906207-1-1.html

Spatial Matrix Creation

l  spmat --Create and manage spatial-weighting matrix objects  [Author: Drukker et.al,2013]

l  spatwmat---Spatial weights matrices for spatial data analysis  [Author: Pisati ,2012]

l  spwmatrix--- Generates, imports, and exports spatial weights  [Author: Jeanty, updated 2014.03.15]

l  spwmatfill ---Assigns first nearest neighbors to observations with no contiguous neighbors.   [Author: Jeanty, 2010]

l  spweight --- Module to compute Cross-Section and Panel SpatialWeight Matrix  [Author: Shehata, 2013]

l  spweightxt-- Module to compute Cross-Section and Panel Spatial Weight Matrix  [Author: Shehata,2013]

l  spweightcs ---Module to computeCross Section Spatial Weight Matrix  [Author: Shehata, 2013]

l  spcs2xt---Module to Convert Cross Section to Panel Spatial Weight Matrix  [Author: Shehata, 2012]

l  shp2dta ---Module to converts shape boundary files to Stata datasets  [Author: Crow, 2013]

Spatial Autocorrelation Test

l  spautoc --Stata modules to calculate spatial autocorrelation  [Author: Nicholas Cox et.al,2006]

l  spatgsa --Measures of global spatial autocorrelation [Author: Maurizio Pisati, 2001]

l  spatlsa --Measures of local spatial autocorrelation [Author: Maurizio Pisati, 2001]

l  spatcorr --Stata modules to compute and plot spatial autocorrelation  [Author: Maurizio Pisati, 2001]

l  spatdiag --Diagnostic tests for spatial dependence in OLS regression  [Author: Maurizio Pisati, 2001]

l  anketest--Moduleto perform diagnostic tests for spatial autocorrelation in the residuals ofOLS, SAR, IV, and IV-SAR models

l  splagvar-Moduleto generate spatially lagged variables, construct the Moran Scatter plot, andcalculate Moran's I statistics

Cross-Section Regression

l  spatreg- Moduleto estimate the spatial lag and the spatial error regression models by maximumlikelihood.

l  spmlreg--Moduleto estimate the spatial lag, the spatial error, the spatial durbin, and thegeneral spatial models by maximum likelihood

l  spautoreg--Moduleto estimate Spatial Cross Sections Regression (Lag-Error-Durbin-SAC-SPGKS-SPGSAR-GS2SLS-GS3SLS-SPML-SPGS-SPIVREG-IVTobit)

l  sppack--Modulefor cross-section spatial-autoregressive models

l  gs2sls-Moduleto estimate Generalized Spatial Two Stage Least Squares Cross Sections Regression

l  gs2slsar--Module to estimate GeneralizedSpatial Autoregressive Two Stage Least Squares Cross Sections Regression

l  gs3sls--Moduleto estimate Generalized Spatial Three Stage Least Squares Cross SectionsRegression (3SLS)

l  gs3slsar--Module to estimate GeneralizedSpatial Autoregressive Three Stage Least Squares (3SLS) Cross SectionsRegression

l  spgmm--Moduleto estimate Spatial Autoregressive Generalized Method of Moments Cross SectionsRegression

l  spregsac--Module to estimate Maximum Likelihood Estimation AutoCorrelation (SAC) CrossSection Regression

l  spregsar--Moduleto estimate Maximum Likelihood Estimation Spatial Lag Cross Sections Regression

l  spregsdm--Moduleto Estimate Maximum Likelihood Estimation Spatial Durbin Cross SectionsRegression

l  spregsem--Module to Estimate Maximum LikelihoodEstimation Spatial Error Cross Sections Regression

l  spmstard--Moduleto Eestimate Multiparametric Spatio Temporal AutoRegressive Regression SpatialDurbin Cross Sections Models

l  spmstar--Moduleto Estimate (m-STAR) Spatial Multiparametric Spatio Temporal AutoRegressiveRegression Models

l  spmstardh--Moduleto Estimate (m-STAR) Spatial Multiparametric Spatio Temporal AutoRegressiveRegression: Spatial Durbin Multiplicative Heteroscedasticity Cross SectionsModels

l  spmstarh--Moduleto Estimate (m-STAR) Spatial Multiparametric Spatio Temporal AutoRegressiveRegression: Spatial Lag Multiplicative Heteroscedasticity Cross Sections Models

l  sptobitmstar--Moduleto Estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Lag Cross Sections Models

l  sptobitmstard--Moduleto Estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Durbin Cross Sections Models

l  sptobitmstardh--Moduleto Estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Durbin Multiplicative HeteroscedasticityCross Sections Models

l  sptobitmstarh--Moduleto Estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Lag Multiplicative Heteroscedasticity CrossSections Models

l  sptobitsar--Moduleto Estimate Tobit MLE Spatial Lag Cross Sections Regression

l  sptobitsem--Moduleto Estimate Tobit MLE Spatial Error Cross Sections Regression

l  sptobitsdm--Moduleto Estimate Tobit MLE Spatial Durbin Cross Sections Regression

l  sptobitsac--Moduleto Estimate Tobit MLE Spatial Autocorrelation Cross Sections Regression

Panel Regression

l  xsmle --Stata modules to calculate spatial Panel Regression  [Author: Belotti et.al, 2014]

l  spglsxt--Moduleto estimate Spatial Panel Autoregressive Generalized Least Squares Regression

l  spregsdmxt:Maximum Likelihood Estimation Spatial Durbin Panel Regression [Author: Shehataet.al, 2014]

l  gs2slsarxt--Moduleto estimate Generalized Spatial Panel Autoregressive Two Stage Least SquaresRegression

l  gs2slsxt--Moduleto estimate Generalized Spatial Panel Autoregressive Two-Stage Least SquaresRegression

l  spgmmxt--Moduleto estimate Spatial Panel Autoregressive Generalized Method of MomentsRegression

l  spmstardhxt--Moduleto estimate (m-STAR) Spatial Multiparametric Spatio Temporal AutoRegressiveRegression: Spatial Durbin Multiplicative Heteroscedasticity Panel Models

l  spmstardxt--Moduleto Estimate (m-STAR) Spatial Multiparametric Spatio Temporal AutoRegressiveRegression: Spatial Durbin Panel Models

l  spmstarhxt--Moduleto Estimate (m-STAR) Spatial Multiparametric Spatio Temporal AutoRegressiveRegression: Spatial Lag Multiplicative Heteroscedasticity Panel Models

l  spmstarxt--Moduleto Estimate (m-STAR) Spatial Panel Multiparametric Spatio TemporalAutoRegressive Regression Models

l  spregdhp--Module to estimate Spatial PanelHan-Philips Linear Dynamic Regression: Lag & Durbin Models

l  spregdpd--Module to estimate Spatial PanelArellano-Bond Linear Dynamic Regression: Lag & Durbin Models

l  spregfext--Module to compute Spatial Panel FixedEffects Regression: Lag and Durbin Models

l  spreghetxt--Module to Estimate Spatial PanelRandom-Effects Multiplicative Heteroscedasticity Regression: Lag and DurbinModels

l  spregrext--Module to compute Spatial PanelRandom Effects Regression: Lag and Durbin Models

l  spregsacxt--Module to Estimate Maximum LikelihoodEstimation Spatial AutoCorrelation (SAC) Panel Regression

l  spregsarxt--Module to Estimate Maximum LikelihoodEstimation Spatial Lag Panel Regression

l  spregsdmxt--Module to Estimate Maximum LikelihoodEstimation Spatial Panel Durbin Regression

l  spregsemxt--Module to Estimate Maximum LikelihoodEstimation Spatial Error Panel Regression

l  Spregxt—New Stata Module Econometric Toolkitto Estimate Spatial Panel Regression Models

l  spxttobit--Moduleto estimate Tobit Spatial Panel Autoregressive Generalized Least SquaresRegression

l  sptobitmstardhxt--Moduleto Estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Durbin Multiplicative HeteroscedasticityPanel Models

l  sptobitmstardxt--Moduleto estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Durbin Panel Models

l  sptobitmstarhxt--Moduleto estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Lag Multiplicative Heteroscedasticity PanelModels

l  sptobitmstarxt--Moduleto estimate Tobit (m-STAR) Spatial Multiparametric Spatio TemporalAutoRegressive Regression: Spatial Lag Panel Models

l  sptobitsemxt--Moduleto estimate Tobit MLE Spatial Error Panel Regression

l  sptobitsacxt--Moduleto estimate Tobit MLE Spatial AutoCorrelation (SAC) Panel Regression

l  sptobitsarxt-- Module to estimate Tobit MLE Spatial Lag Panel Regression

l  sptobitsdmxt--Moduleto estimate Tobit MLE Spatial Panel Durbin Regression

Other Commands

l  china_spatdwm--Moduleto provide spatial distance matrices for Chinese provinces and cities

l  usswm--Moduleto provide US state and county spatial weight (contiguity) matrices

l  spmap--Moduleto visualize spatial data

l  spseudor2--Module to calculate goodness-of-fit measures in spatial autoregressive models

l  spagg--Moduleto create aggregate source or target contagion spatial effect variable fordirected dyadic data

l  spspc--Module to create specific source or target contagion spatial effect variablefor directed dyadic data

l  spdir--Moduleto create directed dyad contagion spatial effect variable

l  spundir--Moduleto create directed dyad contagion spatial effect variable

l  spmon--Moduleto create spatial effect variable for monadic data

l  spgrid--Moduleto generate two-dimensional grids for spatial data analysis

l  spkde -Moduleto perform kernel estimation of density and intensity functions fortwo-dimensional spatial point patterns


5)SAS代码资源:

The SPATIALREGProcedure:https://support.sas.com/rnd/app/ ... ets_spatialreg.html

6) 相关论坛

Github: https://github.com/




















二维码

扫码加我 拉你入群

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

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

关键词:面板空间计量 代码资源 学习笔记 空间计量 码资源

已有 9 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
中山君2012 + 1 + 1 + 1 精彩帖子
燕燕辞巢蝉蜕枝5 + 5 + 1 + 1 + 1 精彩帖子
zxl617451416 + 5 + 1 + 1 + 1 精彩帖子
Nicolle + 100 + 1 + 1 + 1 精彩帖子
happy_287422301 + 100 + 100 + 3 + 3 对论坛有贡献
crystal8832 + 20 + 2 + 2 + 2 精彩帖子
客初 + 100 + 5 + 5 + 5 精彩帖子
zl89 + 80 精彩帖子
yiyi23ttt + 100 + 5 + 5 + 5 精彩帖子

总评分: 经验 + 380  论坛币 + 230  学术水平 + 19  热心指数 + 19  信用等级 + 16   查看全部评分

本帖被以下文库推荐

沙发
lovebao 发表于 2018-10-24 20:53:11 |只看作者 |坛友微信交流群
感谢楼主分享

使用道具

藤椅
hzhangchina 发表于 2018-10-24 20:53:46 |只看作者 |坛友微信交流群
技术帖!!!厉害,希望的存在
已有 1 人评分论坛币 收起 理由
happy_287422301 + 20 我很赞同

总评分: 论坛币 + 20   查看全部评分

使用道具

板凳
落叶无雨 学生认证  发表于 2018-10-24 20:58:55 |只看作者 |坛友微信交流群
lovebao 发表于 2018-10-24 20:53
感谢楼主分享
多多转发,分享给更多的人,希望有助于大家开展研究。
已有 1 人评分论坛币 收起 理由
happy_287422301 + 100 补偿

总评分: 论坛币 + 100   查看全部评分

使用道具

报纸
落叶无雨 学生认证  发表于 2018-10-24 20:59:35 |只看作者 |坛友微信交流群
hzhangchina 发表于 2018-10-24 20:53
技术帖!!!厉害,希望的存在
多多转发,分享给更多的人,希望有助于大家开展研究。
已有 1 人评分论坛币 收起 理由
happy_287422301 + 100 热心帮助其他会员

总评分: 论坛币 + 100   查看全部评分

使用道具

地板
hifinecon 发表于 2018-10-24 21:07:16 来自手机 |只看作者 |坛友微信交流群
落叶无雨 发表于 2018-10-24 20:28
1)Matalb 代码资源:
Elhorst J.P.: https://spatial-panels.com/software/
James P. LeSage:https://w ...
thanks LZ for your kindness

使用道具

7
落叶无雨 学生认证  发表于 2018-10-24 21:09:26 |只看作者 |坛友微信交流群
hifinecon 发表于 2018-10-24 21:07
thanks LZ for your kindness
希望能借你之手分享给更多的同学。
已有 1 人评分论坛币 收起 理由
happy_287422301 + 100 补偿

总评分: 论坛币 + 100   查看全部评分

使用道具

8
shanxianmin2011 发表于 2018-10-24 21:47:29 |只看作者 |坛友微信交流群
谢谢分享

使用道具

9
惊鸿踏月 发表于 2018-10-24 22:11:10 |只看作者 |坛友微信交流群
感谢楼主分享

使用道具

10
李玉坤 学生认证  发表于 2018-10-24 22:20:49 |只看作者 |坛友微信交流群
谢谢啦

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 18:23