Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

Towards reproducible econometric research: the Sweave framework

Towards reproducible econometric research: the Sweave framework 1. OVERVIEW 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 $\def\TeX{{\rm T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\TeX$ / $\font\smc=cmr10 scaled 0700\def\sc#1{\hbox{\smc #1}}\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc A}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\LaTeX$ 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 $\def\TeX{{\rm T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\TeX$ / $\font\smc=cmr10 scaled 0700\def\sc#1{\hbox{\smc #1}}\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc A}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\LaTeX$ 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 $\def\TeX{{\rm T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\TeX$ / $\font\smc=cmr10 scaled 0700\def\sc#1{\hbox{\smc #1}}\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc A}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\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 (Leisch, 2006 ), http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png Journal of Applied Econometrics Wiley

Towards reproducible econometric research: the Sweave framework

Loading next page...
 
/lp/wiley/towards-reproducible-econometric-research-the-sweave-framework-CiTUrHAX0b

References (11)

Publisher
Wiley
Copyright
Copyright © 2008 John Wiley & Sons, Ltd.
ISSN
0883-7252
eISSN
1099-1255
DOI
10.1002/jae.1030
Publisher site
See Article on Publisher Site

Abstract

1. OVERVIEW 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 $\def\TeX{{\rm T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\TeX$ / $\font\smc=cmr10 scaled 0700\def\sc#1{\hbox{\smc #1}}\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc A}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\LaTeX$ 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 $\def\TeX{{\rm T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\TeX$ / $\font\smc=cmr10 scaled 0700\def\sc#1{\hbox{\smc #1}}\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc A}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\LaTeX$ 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 $\def\TeX{{\rm T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\TeX$ / $\font\smc=cmr10 scaled 0700\def\sc#1{\hbox{\smc #1}}\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc A}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\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 (Leisch, 2006 ),

Journal

Journal of Applied EconometricsWiley

Published: Mar 1, 2009

There are no references for this article.