Skip to contents

AST Statistical Linter, PR Diff Linting & SARIF Export

Parse R scripts and Quarto/RMarkdown chunks into XML abstract syntax trees, evaluate 20 built-in statistical lint rules or custom rules, incrementally lint Git pull-request diffs, and export SARIF 2.1.0 JSON for GitHub Code Scanning.

stat_lint()
Lint an R script or Quarto/RMarkdown document for statistical hazards
stat_lint_text()
Lint R or Quarto/RMarkdown source code supplied as a string
stat_lint_dir()
Lint all R, Quarto, and RMarkdown files in one or more directories
stat_lint_diff()
Incrementally lint only added or modified lines in a Git diff / pull request
list_stat_rules()
List available statistical lint rules
new_stat_rule()
Construct a custom statci lint rule
register_stat_rule()
Register a custom statistical lint rule
unregister_stat_rule()
Remove a rule from the active registry
reset_stat_rules()
Reset the rule registry to the built-in statci rule set
export_statci_sarif()
Export statci AST lint results to SARIF 2.1.0 JSON

Estimator Calibration, SBC, Power Curves & Parallel RNG

Verify bias, RMSE, exact Clopper-Pearson interval coverage, Type-I error, Simulation-Based Calibration (SBC), power monotonicity, and core-count-invariant L’Ecuyer-CMRG parallel RNG streams.

audit_estimator()
Audit a statistical estimator via Monte Carlo calibration and fuzzing
audit_sbc()
Audit posterior calibration via Simulation-Based Calibration (SBC)
plot(<statci_sbc>)
Plot SBC rank histogram with expected uniformity band
audit_power_curve()
Audit an estimator's empirical power curve across an effect-size grid
plot(<statci_power_curve>)
Plot empirical power curve with exact Clopper-Pearson confidence band
check_parallel_rng()
Audit parallel RNG invariance across core counts
statci_parallel_apply()
Execute a stochastic map with core-count-invariant L'Ecuyer-CMRG RNG streams

Manuscript-to-Code Consistency Auditor

Cross-check inline prose, Markdown/Quarto tables, LaTeX .tex tables, APA statistics, and internal arithmetic against fitted R model objects.

audit_manuscript()
Audit a Quarto, RMarkdown, or LaTeX manuscript against saved R model objects
audit_manuscript_text()
Audit manuscript prose or tables supplied as an in-memory string

Adversarial Sensitivity & Multiverse Specification Curves

Stress-test fitted modeling pipelines under outlier winsorization, leave-one-cluster-out (LOCO) / leave-one-out influence, missingness contrasts, nonparametric bootstrap resampling, and full Cartesian multiverse specification curves.

audit_sensitivity()
Run an adversarial sensitivity and robustness battery on a statistical pipeline
plot(<statci_sensitivity>)
Plot adversarial sensitivity shifts across scenarios
audit_multiverse()
Audit analytical robustness across a multiverse specification curve
summary(<statci_multiverse>)
Summarize a multiverse specification-curve audit
plot(<statci_multiverse>)
Plot a two-panel publication-ready specification curve and decision matrix

Project Orchestration, Reports & GitHub Actions

Drive full project verification from .statci.yml, render standalone HTML, Markdown, and JSON audit dashboards, enforce CI gates, and generate hardened GitHub Actions workflows.

read_statci_config()
Read and validate a .statci.yml project configuration file
statci_audit_project()
Run the full configured statci verification pipeline on a project
statci_report()
Assemble a unified statci audit report
render_statci_report()
Render a statci_report to standalone HTML, GitHub-Flavored Markdown, or JSON
statci_check_gate()
Enforce CI quality gates on a statci_report
use_statci_github_action()
Generate a GitHub Actions workflow for automated statci verification

Package Overview & Re-exports

statci statci-package
statci: Statistical Verification, Calibration, and Manuscript Auditing
reexports as_tibble
Objects exported from other packages