Boston College
2025-04-02
Analysis / Data | Same | Different |
Same Analysis | Reproducible | Replicable |
Different Analysis | Robust | Generalisable |
If I take the same analysis pipeline and apply it to the same dataset, I get the same results
Openly sharing your research
Open publications
Open experimental protocols
Open software
Open data
Today we are going to focus on reproducible manuscripts
Text
Code/analyses
Citations
Combine narrative with code
Automatically generate figures and tables
Automatically render results in text
Format the content into a scientific paper (including citations!)
Something that looks pretty!
Rinse & repeat
Websites (https://www.drjasongeller.com)
Blogs
Want to guess how I created these slides?
Quarto handles literate programming by using a series of programs:
How Quarto Works (Source)
knitr
executes all code chunks and creates a new markdown (.md
) filepandoc
takes the markdown file generated and converts it to the desired format.(1) Eliminate/reduce human error
We found that half of all published psychology papers that use null-hypothesis significance testing (NHST) contained at least one p-value that was inconsistent with its test statistic and degrees of freedom. One in eight papers contained a grossly inconsistent p-value that may have affected the statistical conclusion)
One such case of a paper being retracted due to an Excel error was the Growth in a Time of Debt by Reinhart & Rogoff (2010)
(2) Easy revisions and specification of desired figures and tables
When revisions are requested, one might have to tweak tables and figures by hand constantly, leading to a major incentive never to rerun analyses because it would mean re-pasting and re-illustrating all the numbers and figures in a paper.
(3) Promote computational reproducibility
Easy verification and reproducilbility of research findings
While programming environments may seem counter-intuitive for writing papers, they ultimately prevent mistakes and save time.
Note
Always start a new project folder!
Creating a Quarto manuscript
In the top left, click the White Plus and select “Quarto Document…”
In the new prompt, enter a title, author name, and press “Create”
Visual Mode represents a What You See Is What You Get (WYSIWYG) editor. This mode is similar to Word.
Getting Started
section of website and complete each part05:00
Annotated sections of the “Hello Quarto” document related to document information, text formatting, and code execution
Annotated source to output of the “Hello Quarto” document
Annotated “Hello Quarto” document navigation options
---
title: My Reproducible Manuscript
authors:
- name: Norah Jones
affiliation: The University
roles: writing
corresponding: true
bibliography: references.bib
format: html
---
Wait… what’s the YAML acronym?
Originally: “Yet Another Markup Language”
Later: “YAML Ain’t Markup Language”
Set global manuscript options with key-value pairs
BC 2025