楼主: hefengmocha
74975 192

[程序分享] 用Matlab进行空间计量模型SDM,SAR计算时的程序包   [推广有奖]

131
天空飞鸟(真实交易用户) 发表于 2016-1-10 13:25:07
楼主, panel_effects_sdm运行出来有问题,怎么办?

132
ivey(真实交易用户) 发表于 2016-1-16 09:55:05
我也没有解决,是不是程序不全啊?

133
wangbbs(未真实交易用户) 发表于 2016-1-16 14:18:38
曙域 发表于 2013-10-22 19:01
额,楼主啊,下了你的程序包没搞清楚怎么用啊~是要先用panel regression跑出结果再去用 panel_effects_sdm么 ...
动态空间权重矩阵这个本身Elhrost也没有处理,要想用动态的,只能自己编程了。

134
zhaozhao16(真实交易用户) 发表于 2016-1-19 16:40:28
感谢分享,是只要下第二个就好了吗

135
xmrhkld(真实交易用户) 发表于 2016-2-29 16:26:03
谢谢楼主分享

136
小白想学习(真实交易用户) 发表于 2016-3-9 20:57:34
非常非常地谢谢

137
小白想学习(真实交易用户) 发表于 2016-3-10 10:45:59
非常谢谢

138
小白想学习(真实交易用户) 发表于 2016-3-11 17:47:10
各位大神,我真心从入门开始,求助求助
我改了变量,我的变量有点多,但是结果我不知道为什么
% No fixed effects + spatially lagged dependent variable
info.lflag=0; % required for exact results
info.model=0;
info.fe=0; % Do not print intercept and fixed effects; use info.fe=1 to turn on
% New routines to calculate effects estimates
results=sar_panel_FE(y,[xconstant x],W,T,info);
vnames=strvcat('hp','intercept','loggdp','lognmrk','logzggz','logkzpsr','logcxck','logfwxsmj','logfwjgmj','logzzkftz','logccry');
% Print out coefficient estimates
prt_sp(results,vnames,1);
% Print out effects estimates
spat_model=0;
direct_indirect_effects_estimates(results,W,spat_model);
panel_effects_sar(results,vnames,W);
% ----------------------------------------------------------------------------------------
% No fixed effects + spatially lagged dependent variable + spatially
% independent variables
info.lflag=0; % required for exact results
info.model=0;
info.fe=0; % Do not print intercept and fixed effects; use info.fe=1 to turn on
% New routines to calculate effects estimates
results=sar_panel_FE(y,[xconstant x wx],W,T,info);
vnames=strvcat('logcit','intercept''loggdp','lognmrk','logzggz','logkzpsr','logcxck','logfwxsmj','logfwjgmj','logzzkftz','logccry','W*loggdp','W*lognmrk','W*logzggz','W*logkzpsr','W*logcxck','W*logfwxsmj','W*logfwjgmj','W*logzzkftz','W*logccry');
% Print out coefficient estimates
prt_sp(results,vnames,1);
% Print out effects estimates
spat_model=1;
direct_indirect_effects_estimates(results,W,spat_model);
panel_effects_sdm(results,vnames,W);

结果是这样的:
Output truncated.  Text exceeds maximum line length of 25,000 characters for Command Window display.
哎是变量太多了吗,感觉也不是啊,之前用过demoLMsarsem-panel试出结果了啊

139
小白想学习(真实交易用户) 发表于 2016-3-11 20:01:53
zhangtao 发表于 2013-10-18 23:15
Ordinary Least-squares Estimates
Dependent Variable =        logcit   
R-squared      =    0.320 ...
大神,小白一只求赐教啊!
我用的demopanelscompare.m
我的自变量有九个,可为何结果只能显示三个
No lndet approximation used
***************************************************************
Variable        Coefficient  Asymptot t-stat    z-probability
variable 1        -0.023484        -0.326852         0.743780
variable 2         0.295519         3.928957         0.000085
variable 3         0.343876         4.632265         0.000004
W*dep.var.         0.202999         2.198013         0.027948
就像这样,而且还说变量的格式是错误的,只能显示variable1,2,3
真的不懂啊,从何处改才好

140
liwulin(真实交易用户) 发表于 2016-4-21 20:56:21
民大学子 发表于 2013-12-8 20:21
首先1你要把你的数据导入matlab 然后2将导入数据与楼主的程序放在一起3 打开demo文件 把楼主的A=wklread. ...
非常有用

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 14:16