# Difference: StatReport (23 vs. 24)

Revision 24
22 Jul 2011 - Main.FrankHarrell
Line: 1 to 1

 META TOPICPARENT name="RS"

# Statistical Reporting, Linking S Output with Report Documents, Literate Programming, Managing Analyses, and Documenting Programs and Data | Reproducible Research | RR Planet | Department Reproducible Reporting Activities

• Statistical Tables and Plots using S and LaTeX; FE Harrell (PDF with hyperlinks and bookmarks). This document shows all of the LaTeX and S code needed to produce the entire document. Heavy use is made of the `Hmisc` library's `summary.formula` function for semi-advanced table making and conversion of selected tables to graphics. The document shows how to automatically get hyperlinks in the final `.pdf` file using the LaTeX `hyperref` style. It also shows how easy it is to use the LaTeX `\input` command to include tables and computed values created by S, which allows a report to easily be updated, reassembled, re-cross-referenced, etc., if any component tables or plots change. The Heiberger-Harrell `latex` function in `Hmisc` is used to interface S with LaTeX.
Line: 20 to 20

One of many features of S that makes it an excellent tool for producing statistical reports is its object orientation. By writing both a table-producing method and a plot method for each type of analysis you can convert tables to plots. See the `Hmisc` library's `summary.formula` function for many examples of this.
Changed:
<
<
Click here for a short article about how the University of Wisconsin Statistical Data Analysis Center uses S-Plus and LaTeX for producing primarily graphical reports for Safety and Data Monitoring Committees.
>
>
Click here for information about how the University of Wisconsin Statistical Data Analysis Center uses S and LaTeX for producing primarily graphical reports for Safety and Data Monitoring Committees.

• Literate programming: Writing documentation containing computer code. Documentation (and perhaps a statistical report) and code are maintained in one file. An extractor program such as FunnelWeb splits out the code to compile. H.P. Wolf and P. Naeve have done a lot of work in this area. In Peter Wolf's words
• Some years ago we have developed a system for reporting the steps of a data analysis. The system is based on the ideas of literate programming. `Noweb` and LaTeX are used to generate nice output. The result of the tangle path can be reloaded by our function `revive()` into the S-Plus interpreter. Then you can select and extract the elements of the old analysis, you can modify them and you can activate the statements again. Therefore, our tool can be used for teaching, demonstrations, case studies, ... We have constructed a lot of papers for our statistics courses in this way.
Click here for their papers that are written in English. These include a nice "live" statistics text (A Revivable Book of Statistics) in which their `revive()` function is used to extract S-Plus code from the book for interactive replay by the user who is connected to an S-Plus session.
Line: 39 to 39

• PERSPECTIVE, Hypertext Data Analysis Mapping software from Pharmaceutical Outcomes Research, Inc. This software allows analysts to track, review, communicate, and document analysis results using HTML.
• Reproducibility in Econometrics Research by Roger Koenker. A document on that page describes many useful approaches, including an S-Plus function `how.created` that makes it easy to attach to an object the following information: comments, user name, date, and the environment in effect (e.g., the search list) when the object was created.
• Tony Rossini, a developer of ESS ("Emacs Speaks Statistics") is working on using `Noweb` with Emacs bookmarking facilities for tying S output chunks and figures to reports.
Changed:
<
<
>
>

Copyright © 2013-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback