| Literature DB >> 33215069 |
Leah J Welty1, Luke V Rasmussen2, Abigail S Baldridge3, Eric W Whitley3.
Abstract
OBJECTIVES: To enhance reproducible research by creating a broadly accessible, free, open-source software tool for connecting Microsoft Word to statistical programs (R/R Markdown, Python, SAS, Stata) so that results may be automatically updated in a manuscript.Entities:
Keywords: dynamic documents; open science; reproducible research; software
Year: 2020 PMID: 33215069 PMCID: PMC7660954 DOI: 10.1093/jamiaopen/ooaa043
Source DB: PubMed Journal: JAMIA Open ISSN: 2574-2531
Figure 1.Schematic overview of the 3 primary functional roles implemented within StatTag and the responsibilities of each role.
Figure 2.StatTag’s execution process of multiple linked code files in a single Word document. The code files are listed in the order they were linked to the Word document, which dictates the execution order.
Design and implementation of StatTag for Windows and macOS
| Windows | macOS | |
|---|---|---|
| Application interaction | “Add-in” to Microsoft Word | Standalone application |
| Development language | C# | Objective-C |
| Frameworks | Microsoft.NET, Windows Forms, | Cocoa and AppleScript |
| Supported statistical software | R, R Markdown, SAS, Stata, Python | R, R Markdown, Stata |
| Application availability | Free download at stattag.org | Free download at stattag.org |
| Source code |
|
|
| License | MIT | MIT |
Steps for working with StatTag to collaboratively prepare a document
| Step | Process | Description |
|---|---|---|
| 1 | Developing statistical code | Using text editor of choice, write statistical code in R/R Markdown, SAS, Stata, and/or Python. Code files should run without error before use with StatTag |
| 2 | Associating a code file | Using StatTag, associate one or more code files with the Word document |
| 3 | Defining tags (tagging) |
Using StatTag, identify results (numeric value, table, figure, or verbatim output) within a code file to embed within the Word document or Using text editor of choice, identify results (numeric value, table figure or verbatim output) within the code file using specially formatted comments |
| 4 | Inserting tags | Using StatTag, insert tags into user defined locations in the Word document. Tags that are copied and pasted retain their links to the statistical code and will update accordingly |
| 5 | Working collaboratively | Working in Word, share and edit document with collaborators as needed, using track changes and comments. Collaborators wishing to only modify the Word document do not need to have StatTag installed. Any collaborator with access to the source code and data can add or update tags using the exact same process |
| 6 | Updating results | Using StatTag, update results within the Word document |
Figure 3.Timeline of StatTag development, releases, and usage from July 2016 to November 2019. The number of registrations at stattag.org are shown in red; the number of registrations that also included a download of StatTag are shown in blue. Solid vertical lines indicate “major” releases, such as addition of a statistical software program or substantial redesign of the user interface. Dashed vertical lines indicate “minor” releases, which include smaller changes such as improving speed or addressing user-reported issues.