Monday, 25 June 2007

R, R graphics and Sweave




One of the best econometric software packages available to researchers is the package R (www.r-project.org), which is made available under the GNU-GPL license - which basically means it is free to use. It is based on the iconic Bell Labs S language and it has a very large and uptodate menu of implemented techniques used in econometrics, biometrics, maths, physics and engineering. It's object oriented character makes it very flexible indeed. Combined with LateX (using the package Sweave [www.ci.tuwien.ac.at/~leisch/Sweave/]), R commands can be embedded into a LaTeX document [www.ctan.org], which means that you have full documentation and output in one place, which can be easily compiled to execute all estimations and to create the final document in one step.

In the process, R creates publication quality graphics which are often of a very high quality and quite innovative as well. For instance, the graphic shown above is Fig. 2 from the paper Grosjean, PH, Ch. Spirlet & M. Jangoux, 2003. A functional growth model with intraspecific competition applied to a sea urchin, Paracentrotus lividus. Can. J. Fish. Aquat. Sci., 60:237-246. (Try doing this in Excel or EViews).

No comments: