-
Recent Posts
Recent Comments
- 店小二 on 论三座大山
- L on SVI模型拟合
- acnkid on 俄乌战争的回顾及其他
- acnkid on 外卖小哥的收入以及其他
- acnkid on 外卖小哥的收入以及其他
Archives
- June 2024
- April 2024
- January 2024
- October 2023
- September 2023
- August 2023
- June 2023
- May 2023
- February 2023
- January 2023
- October 2022
- September 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- December 2021
- October 2021
- September 2021
- August 2021
- June 2021
- May 2021
- April 2021
- January 2021
- December 2020
- September 2020
- August 2020
- May 2020
- April 2020
- May 2019
- March 2019
- February 2019
- January 2019
- September 2018
- July 2018
- May 2018
- April 2018
- December 2017
- November 2017
- August 2017
- July 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- September 2016
- August 2016
- July 2016
- June 2016
- March 2016
- January 2016
- October 2015
- July 2015
- May 2015
- November 2014
- August 2014
- July 2014
- March 2014
- February 2014
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- January 2013
- December 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- June 2010
- May 2010
- October 2009
- July 2009
- May 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- April 2008
- November 2007
- April 2007
Categories
Meta
Tag Archives: Eviws
Eviews 编程的几点经验
前几天在折腾数据,还是去年用matlab从百度指数的网页上抠下来的,具体有博文http://laofish.com/archives/362,不表。 从我开始打算搞这个主题,目前见证了两片working paper 的发表,还有好几篇待审,包括前几天看到得一篇投到《经济研究》上的,还见证了ZF从一篇练习到慢慢完善发表的全过程。只恨自己没恒心,早搞定发出来,搞到现在,所谓新想法早就成了明日黄花。也不得不感慨,学术届也TMD竞争激烈啊。 闲话休提,因为自己matlab技术不够,又不想自己钻研,所以又用起了被自己鄙视的Eviews,主要是因为自己常用的计量手段都内置了,实在是方便。 关于Eviews编程的教程,http://forums.eviews.com/viewtopic.php?f=5&t=1638,这篇帖子介绍的很好,不过时针对Eviews 7,有些函数Eviews 6还没有,我这里挑几个我遇到的问题和解决的经验说说。 1 注释,注释是用’,就是英文状态下的单引号,后面一行会被注释掉 2 获取回归结果的方式,首先直接获取公式对象的各种属性,如“eq1.@coefs(2)” 是获取公式eq1的系数向量中的第一个系数,具体的对象属性名称,可以在Eviews users guide里面对应章节获取。 2 有些回归结果并没有直接提供,如回归结果的pvalue,其实这个是我最看重的变量,因为这个计量经济学不就是看一个显著性,解释到底什么因什么是果的东西嘛,因为Eviews 的equation 对象不提供pvalue属性,这里就要用一个函数计算一下,使用方法!pval = @tdist(!tstat, !df),tdist就是t分布的分布函数,具体内置的各种函数可以在Eviews command ref 这个pdf内的Operator and Function Listing章节获取。 3 还有些结果,无法通过上述两种方式获取,那么还有一个办法,只要他提供结果,就可以通过freeze,获取一个表,这个表格每一个单元格的内容都是可以获取的。由于表格内容都是字符串,所以都可以函数转化一下获取,如“@val(tab1(9,4))”。 4 最后,获取的变量要存储和显示,可以存储到矩阵和向量对象里面去,不过我最喜欢用的还是表格,table,使用方法很简单,如 result_granger_nan_tvol(!i,2*!k)=!granger_2,()内是制定存储变量!granger_2的结果到哪一个单元格当中去。 -EOF