statfidelity: Audit Statistical Fidelity of AI-Mediated Official Statistics

Provides deterministic tools for auditing whether artificial intelligence systems preserve the numerical, semantic, contextual, temporal, geographic, unit, provenance, revision, transformation, and uncertainty properties of official statistics. Structured reference statistics and machine-generated claims can be compared with non-compensatory critical-error rules, weakest-link and geometric fidelity summaries, provenance graphs, and portable SHA-256 proof bundles. The package also provides bounded connectors for official Eurostat, World Bank, OECD, United Nations SDG, United Kingdom Office for National Statistics, and United States Bureau of Labor Statistics application programming interfaces, plus an extensible HTTPS JSON API registry with session-only API-key support. Prompt perturbation, statistical red-team generation, minimal-pair tests, and starter benchmark data support reproducible evaluation of generative, retrieval-augmented, and agentic statistical systems. An embedded alignment layer maps claim-level controls to relevant activities of the Generic Statistical Business Process Model (GSBPM) 5.2, including Analyse, Disseminate, Evaluate, Quality Management, and Metadata Management. No specific model provider is required.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: digest, jsonlite, stats, utils
Suggests: testthat (≥ 3.0.0)
Published: 2026-09-03
DOI: 10.32614/CRAN.package.statfidelity (may not be active yet)
Author: Hossein Hassani [aut], Steve MacFeely [aut], Leila Marvian Mashhad [aut, cre]
Maintainer: Leila Marvian Mashhad <leila.marveian at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: statfidelity citation info
Materials: README, NEWS
CRAN checks: statfidelity results

Documentation:

Reference manual: statfidelity.html , statfidelity.pdf

Downloads:

Package source: statfidelity_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=statfidelity to link to this page.