空间计量模型R操作代码.docx

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
空间计量模型R操作代码

sheng-readOGR(.,shengditu)OGR data source with driver: ESRI Shapefile Source: ., layer: shengdituwith 30 features and 7 fieldsFeature type: wkbPolygon with 2 dimensions sheng_nb-poly2nb(sheng) sheng_nblist-nb2listw(sheng_nb) Y-log(sheng$INCOME) X1-log(sheng$CAIZHENG) X2-log(sheng$YONGDIAN) M0=lm(sheng$INCOME~sheng$CAIZHENG+sheng$YONGDIAN) M0Call:lm(formula = sheng$INCOME ~ sheng$CAIZHENG + sheng$YONGDIAN)Coefficients: (Intercept) sheng$CAIZHENG sheng$YONGDIAN 2242.7762 1.9409 0.8433 bptest(M0)studentized Breusch-Pagan testdata: M0BP = 13.3794, df = 2, p-value = 0.001244 M1=lm(Y~X1+X2) M1Call:lm(formula = Y ~ X1 + X2)Coefficients:(Intercept) X1 X2 5.9063 0.1410 0.2403 bptest(M1)studentized Breusch-Pagan testdata: M1BP = 1.0727, df = 2, p-value = 0.5849空间同步自回归误差模型M5SEAR-errorsarlm(form=Y~X1+X2,listw=sheng_nblist,etype=error) M5SEARCall:errorsarlm(formula = Y ~ X1 + X2, listw = sheng_nblist, etype = error)Type: error Coefficients: lambda (Intercept) X1 X2 0.6803705 6.2439714 0.1698298 0.1567685 Log likelihood: 16.28129 空间杜宾误差模型M6SDEM-errorsarlm(formula=Y~X1+X2,listw=sheng_nblist,etype=emixed) M6SDEMCall:errorsarlm(formula = Y ~ X1 + X2, listw = sheng_nblist, etype = emixed)Type: error Coefficients: lambda (Intercept) X1 X2 lag.X1 lag.X2 0.383941329 5.606443895 0.174980753 0.125294150 0.127128572 0.005312641 Log likelihood: 18.43699 空间自回归滞后模型 M7SAR-lagsarlm(Y~X1+X2,listw=sheng_nblist,type=lag) M7SARCall:lagsarlm(formula = Y ~ X1 + X2, listw = sheng_nblist, type = lag)Type: lag Coefficients: rho (Intercept) X1 X2 0.4977138 2.5142894 0.1598273 0.1208989 Log likelihood: 19.10202 空间杜宾模型 M8SDM-lagsarlm(Y~X1+X2,list=sheng_nblist,type=mixed) M8SDMCall:lagsarlm(formula = Y ~ X1 + X2, listw = sheng_nblist, type = mixed)Type: mixed Coefficients: rho (Intercept) X1 X2 lag.X1 0 20 0

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档