Towards reproducible econometric research: the Sweave framework
β Scribed by Evan Meredith; Jeffrey S. Racine
- Book ID
- 102291373
- Publisher
- John Wiley and Sons
- Year
- 2008
- Tongue
- English
- Weight
- 441 KB
- Volume
- 24
- Category
- Article
- ISSN
- 0883-7252
- DOI
- 10.1002/jae.1030
No coin nor oath required. For personal study only.
β¦ Synopsis
The Sweave package for the R and S-plus statistical computing environments enables the user to construct a single file which includes both the code to be run in R/S-plus and the T E X/L A T E X code comprising the text of the document. Files containing both types of code are referred to as .Rnw/.Snw files. The various sections ('chunks') of R/S-plus and T E X/L A T E X code are included in the file in the order in which they are to be employed in the final document. Sweave then weaves together the code chunks to produce a .tex file that may be compiled using TeX/LaTeX. By using Sweave, an individual can create a dynamic document (Gentleman and Lang, 2004) which includes both the statistical analysis and the methods by which the output underlying the analysis is obtained. This process sidesteps a major source of research errors, namely, the misreporting of computer output.
Sweave was developed by Friedrich Leisch and is written in the S language. 1 A directory containing the manual , a number of other related documents (Leisch, 2002a(Leisch, ,b, 2003a,b) ,b) and a FAQ can be found at http://www.ci.tuwien.ac.at/ΒΎleisch/Sweave/. Utilizing Sweave requires R/S-plus 2 and an implementation of T E X/L A T E X. In what follows, we restrict attention to the open R (Team, 2008) implementation of the S language and nL A T E Xn. There is no need to install Sweave itself, as it is included in the utils package in R version 1.5.0 or higher. Windows users should avoid installing R in the default installation directory, Program Files, as the installation path contains blank spaces which nL A T E Xn cannot handle. To remedy this, simply install R in a path that contains no blanks .
π SIMILAR VOLUMES