26 November 2015 by Lars
In the quest for reproducible research tools
Since most of what we do at the Census Bureau is done in SAS, having a tool to combine and SAS is very useful:
http://support.sas.com/rnd/app/papers/statrep.html
In essence,
- Download the zip package, and extract
statrep_macros.
sas, statrep_tagset.sas,
longfigure.sty,
statrep.sty
- Put these files into your paper directory
- Write your document, and insert the SAS code you need between
\begin{Datastep} \end{Datastep}
and
\begin{Sascode} \end{Sascode}
- Reference your output and graphics with
\Listing
and\Graphic
references. - Compile your document
- Run the SAS code that was generated
- Compile your document again (2x, 3x,…)
- Done.
For easy reference, the manual that is distributed with the CTAN package or the SAS package (they are the same) is embedded below. (Original version here)