TY - JOUR AU - Racine, Jeffrey S. AB - 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 ), TI - Towards reproducible econometric research: the Sweave framework JF - Journal of Applied Econometrics DO - 10.1002/jae.1030 DA - 2009-03-01 UR - https://www.deepdyve.com/lp/wiley/towards-reproducible-econometric-research-the-sweave-framework-CiTUrHAX0b SP - 366 EP - 374 VL - 24 IS - 2 DP - DeepDyve ER -