全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
9169 10
2012-08-10
T=7; % number of time periods
N=11; % number of regions
% row-normalize W
W=normw(w11); % function of LeSage
y=shuju1(:,[1]); % column number in the data matrix that corresponds to the dependent variable
x=shuju1(:,[2,3,4,5,6]); % column numbers in the data matrix that correspond to the independent variables
xconstant=ones(N*T,1);
[nobs K]=size(x);
% ----------------------------------------------------------------------------------------
% spatial fixed effects + spatially lagged dependent variable无固定效应
info.lflag=0; % required for exact results
info.model=0;
results1=sar_panel_FE(y,[xconstant x],W,T,info);
vnames1=strvcat('y','intercept','zyfg','lq','rjgdp','gyh','tr');
prt_spnew(results1,vnames1,1);
%空间固定效应
info.lflag=0; % required for exact results
info.model=1;
info.fe=0; % no print intercept and spatial fixed effects
results2=sar_panel_FE(y,x,W,T,info);
vnames2=strvcat('y','zyfg','lq','rjgdp','gyh','tr');
prt_spnew(results2,vnames2,1);
T=7; % number of time periods
N=11; % number of regions
% row-normalize W
W=normw(w11); % function of LeSage
y=shuju1(:,[1]); % column number in the data matrix that corresponds to the dependent variable
x=shuju1(:,[2,3,4,5,6]); % column numbers in the data matrix that correspond to the independent variables
xconstant=ones(N*T,1);
[nobs K]=size(x);
% ----------------------------------------------------------------------------------------
% spatial fixed effects + spatially lagged dependent variable无固定效应
info.lflag=0; % required for exact results
info.model=0;
results1=sar_panel_FE(y,[xconstant x],W,T,info);
vnames1=strvcat('y','intercept','zyfg','lq','rjgdp','gyh','tr');
prt_spnew(results1,vnames1,1);
%空间固定效应
info.lflag=0; % required for exact results
info.model=1;
info.fe=0; % no print intercept and spatial fixed effects
results2=sar_panel_FE(y,x,W,T,info);
vnames2=strvcat('y','zyfg','lq','rjgdp','gyh','tr');
prt_spnew(results2,vnames2,1);
哪位大侠帮我看看这段程序对吗?运行时候总是出错: 出错.jpg
二维码

扫码加我 拉你入群

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

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

全部回复
2012-8-10 19:54:27
合一
二维码

扫码加我 拉你入群

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

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

2012-8-10 19:54:58
不会啊,高深
二维码

扫码加我 拉你入群

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

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

2012-8-10 20:11:06
强烈顶贴,大赞楼主
二维码

扫码加我 拉你入群

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

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

2012-9-14 12:32:05
请问楼主问题解决了吗
二维码

扫码加我 拉你入群

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

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

2012-9-14 17:06:51
https://bbs.pinggu.org/thread-1575198-1-1.html
现在那个压缩包;可以放在 jpl7/spatial 下;

你的这个的意思是,将一个脚本文件以 fuction (函数文件)来执行;
不知道你工具箱里有那几个函数文件没;
上传的这个就是;

二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群