aib_figures: Copy and run the paper figures script

View source: R/aib_figures.R

aib_figuresR Documentation

Copy and run the paper figures script

Description

Copies the paper figures script to your working directory and optionally runs it. The script produces five figures (bias trajectory, disparity heatmap, transition probabilities, amplification index and gap decomposition) from a toy simulation (N=20, T=3).

Usage

aib_figures(run = TRUE, dest = file.path(tempdir(), "paper_figures.R"))

Arguments

run

Logical. If TRUE (default), runs the script immediately. If FALSE, just copies the file for you to inspect and edit first.

dest

Character. Destination filename. Default file.path(tempdir(), "paper_figures.R").

Value

The path to the copied script, invisibly.

Examples


# Copy and run immediately
aib_figures()

# Just copy to inspect first
aib_figures(run = FALSE, dest = file.path(tempdir(), "paper_figures.R"))



AIBias documentation built on Dec. 1, 2026, 1:06 a.m.