地理加权回归是空间计量经济学中处理空间异质性的重要模型,现有的stata目前可以支持GWR分析,该命令包为gwr,其语法格式为:
gwr depvar [varlist] [if exp] [in range] , east(varname) north(varname) [options]
其中,east存放个体的经度坐标或X轴位置坐标的变量,north存放个体的纬度坐标或Y轴位置坐标的变量.
options里选项有:
saving(filename) dots reps(#) double eform family(familyname)
link(linkname) [ln]offset(varname) test replace noconstant
nolog scale(x2|dev|#) disp(#) iterate(#) init(varname)
outfile(filename) comma wide bandwidth(#) mcsave(filename)
sample(#)
其中,常用到如下:
检验专用:
保存文件专用: