| 所在主题: | |
| 文件名: kongjian.rar | |
| 资料下载链接地址: https://bbs.pinggu.org/a-1541315.html | |
| 附件大小: | |
|
我在空间面板计量程序中,demopanelscompare程序试行出错于prt_sp, 出错提示如下:
??? Error using ==> prt_sp at 77 results structure not known by prt_sp function Error in ==> demopanelscompare at 61 prt_sp(results,vnames,1); 根据提示查错,demopanelscompare 61行为以下程序红色部分: % 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('logcit','intercept','logp','logy'); % Print out coefficient estimates prt_sp(results,vnames,1); % Print out effects estimates prt_sp 77 行是以下程序红色部分: switch results.meth case {'sem'} fprintf(fid,'Pooled model with spatial error autocorrelation, no fixed effects \n'); case {'semsfe'} fprintf(fid,'Pooled model with spatial error autocorrelation and spatial fixed effects \n'); case {'semtfe'} fprintf(fid,'Pooled model with spatial error autocorrelation and time period fixed effects \n'); case {'semstfe'} fprintf(fid,'Pooled model with spatial error autocorrelation, spatial and time period fixed effects \n'); case {'sar'} fprintf(fid,'Pooled model with spatially lagged dependent variable, no fixed effects \n'); case {'sarsfe'} fprintf(fid,'Pooled model with spatially lagged dependent variable and spatial fixed effects \n'); case {'sartfe'} fprintf(fid,'Pooled model with spatially lagged dependent variable and time period fixed effects \n'); case {'sarstfe'} fprintf(fid,'Pooled model with spatially lagged dependent variable, spatial and time period fixed effects \n'); otherwise error('results structure not known by prt_sp function'); end % switch statement 根据提示的意思是,results.meth里没有上面的任何结果。我找到result.meth,里面只有一个结果是 psar。这是什么?psar是那种类型的空间面板回归??还是之前的程序有误? 在https://bbs.pinggu.org/thread-1575198-1-1.html中有提到,ELHORST的代码集成和其它空间计量程序有冲突,我想是不是prt_sp 的问题。找了好几个prt_sp,目前用的这个是程序跑的最远的了! 如今连demo都跑不出来,更不要提试自己的数据了!求高手解救! 附件的程序是我在 http://www.regroningen.nl/elhorst/software.shtml 下载的,要试行还缺少其它空间计量函数。我从另外一个kongjian 计量包里补充。所以附上的程序是补充过的。 另外,https://bbs.pinggu.org/thread-1575198-1-1.html 有另一版的Elhorst code。由于不能重复就不上传了。 |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明