Reproducibility and Data Availability

This textbook was prepared as a reproducible Quarto project. The source files, R scripts, generated data examples, and rendering configuration are maintained in the project repository.

Repository: https://github.com/MohammedAliSharafuddin/smallsamplelab

Software environment

The project uses R, Quarto, Pandoc, and LaTeX for rendering. The main reproducibility files are:

File Purpose
setup.R Installs or checks required R packages and prepares datasets where needed
validation_script.R Runs project-level validation checks
renv.lock Records the package versions used for reproducible rendering
_quarto.yml Main Quarto book configuration
references.bib Bibliographic database
data/ Teaching and example datasets
R/ Supporting R functions and scripts
.github/workflows/render-book.yml GitHub Actions workflow for rendering the book on hosted infrastructure

Data availability

The datasets used in the textbook are teaching datasets or generated example datasets designed for learning and reproducibility. They are not confidential human-subject datasets and should not be interpreted as real institutional or commercial records unless explicitly stated in a chapter.

Reproducibility expectation

A reader should be able to clone the repository, install the required tools, run renv::restore(), run the setup script, and render the book. All figures and tables can be regenerated on a fresh machine using renv::restore() followed by quarto render or the repository render scripts. Final publisher submission should include rendered HTML, PDF, and DOCX outputs, together with render logs and a release archive.

Chapter helper functions

Some chapters use short helper functions to keep table styling and repeated simulation logic consistent across HTML and PDF output. These helpers are not hidden dependencies: they are stored in the repository under R/ and are sourced by the relevant chapter setup chunks.

The helper files are:

  • R/chapter_table_helpers.R: provides smallsamplelab_apa_table() for consistent APA-style table rendering in HTML and PDF.
  • R/chapter_helpers.R: provides chapter-specific helpers, including chapter5_measurement_table(), chapter6_simulate_scale(), chapter6_problem_item_diagnostics(), smalln_mcar_table(), and chapter10_format_p().
  • R/smalln_recipes.R: provides reusable small-sample analysis recipes, including mw_test() and boot_median_ci().

To inspect or reuse them interactively, run:

source("R/chapter_table_helpers.R")
source("R/chapter_helpers.R")
source("R/smalln_recipes.R")

Archival release

For formal citation, the publisher-ready version should be archived as Version 1.0.0 and deposited in a DOI-issuing repository. The DOI, ISBN, release date, and final licence should then be inserted into this page, CITATION.cff, .zenodo.json, codemeta.json, and the README.