spss和python stata matlab_计量经济学实证研究中,哪款软件好?(SPSS,Eviews,Matlab,stata,SAS)...

有关哪个计量经济学软件最好的问题,过一段时间就会在论坛上讨论一次。我自己在课堂上教R, zhentaoshi/econ5170,很自然地认为R是最好的计量经济学软件。以下是我写在课程讲义中的个人看法。

Thirty years ago aspiring young econometricians picked up GAUSS. Twenty years ago the new blood began with MATLAB. R raised ten years ago when the time came to my generation. I have been using R since I started my postgraduate study in Peking University in 2005. R helps me with my daily research and teaching.

There are other candidates in statistical programming, for example Matlab, Python, Julia and Fortran. Each language has its own pros and cons. R has many advantages. First, it inherits the standard program syntax from C. It is quick to learn for anyone with prior programming experience. Moreover, once you master R, it is easy to switch to other language, if not R, in your workplace in the future.

Second, backed by a vast statistician community, R enjoys a large selection of packages, including the most recent ones. When they publish a paper, often times statisticians write and upload a companion R package to facilitate user adoption.

Third, R is free. It was the primary reason that I chose it at the very beginning. In the era of open-source software, an algorithm written in R is easier to share, test, and improve. Anyone can run R code on any platform, free of license and fee headache.

R is not without limitations. For example, speed is a concern when running big and complex jobs. However, it will not be an issue in the problems that we will encounter in the first year postgraduate study.

Lastly, learning a language is a non-trivial investment of our precious time. It is much more important to master one language than to know several or many languages. R is not the only language available for computing. Why not Python? Python is a general purpose language, not a scientific computing language. We need to import external modules even for basic numerical operations. For example, I personally don't like `np.mean`, `np.var` and `np.log`. For basic matrix manupulation, the default behavior of `numpy` is quite different from R.

Why not Julia? Julia is too young to have a big community. We would wait until it grows into more stable status. Moreover, the speed advantage does not help much in interactive usage in empirical research.

Over the years, I have had a taste of both Python and Julia. In my opinion, R so far best suits our purpose of learning a computing language for statistics and econometric analysis.

以上我没有讨论Stata。在刚读研的时候我曾经用Stata帮老师做过一些RA的工作。Stata不是我的菜。它不是一个容易拓展的软件,特别是它的编程语法独特而奇怪。如果经济学家只能在一个软件提供的范围内选择他使用的方法的话,这是计量经济学不幸。

当然,每个人有不同的需要。能够用熟一个语言或者一种软件就好。

你可能感兴趣的:(spss和python,stata,matlab)