
Package index
Multi-Facet Structured Coding Engine
Schemas, crossed experimental coding designs, resumable checkpointing, integrity-checked caches, and pluggable backends.
-
schema_field() - Define a Field for an LLM Coding Schema
-
coding_schema() - Define a Structured Output Schema for LLM Coding
-
as_json_schema() - Convert a Coding Schema to a JSON Schema List
-
validate_coded_output() - Validate and Parse Structured LLM Output Against a Coding Schema
-
coding_cache() - Create a Content-Addressed Response Cache for LLM Coding
-
cache_key() - Compute Content-Addressed SHA-256 Cache Key
-
cache_get()cache_set()cache_clear()cache_stats() - Retrieve, Store, Clear, or Inspect a Coding Cache
-
coding_design() - Specify a Multi-Facet LLM Coding Design
-
code_texts() - Execute a Multi-Facet Structured LLM Coding Design
-
aggregate_scores() - Aggregate Multi-Facet LLM Scores to Unit Level
-
backend_score() - Score a Single Coding Request via an LLM Backend
-
backend_mock() - Deterministic Synthetic LLM Rater Backend
-
backend_openai() - OpenAI-Compatible HTTP Coding Backend
-
backend_ollama() - Local Ollama HTTP Coding Backend
-
backend_custom() - Custom R-Function LLM Coding Backend Adapter
LLM Psychometrics & Generalizability
Generalizability Theory variance decomposition, Decision Studies, calibration against human gold standards, human ceilings, and drift monitoring.
-
g_study() - Generalizability Study (G-Study) for Multi-Facet LLM Coding
-
d_study() - Decision Study (D-Study) Reliability Projections & Optimal Design Solver
-
calibration_metrics() - Calibration Metrics Comparing LLM Scores to Human Gold Standards
-
human_irr() - Human Inter-Rater Reliability (IRR) Ceiling Benchmark
-
check_drift() - Test for Temporal or Model-Version Scoring Drift
Differential Prompt Functioning & Fairness
Uniform and non-uniform subgroup measurement invariance testing and prompt-level FDR screening.
-
dpf_test() - Differential Prompt Functioning (DPF) & Measurement Invariance Test
Prediction-Powered Inference & Multilevel Extensions
Error-corrected estimators combining human validation subsets with large LLM-coded corpora, including Horvitz-Thompson active IPW-PPI and cross-fitted non-linear calibration.
-
ppi_mean() - Prediction-Powered Mean Estimation (PPI / PPI++ / Active IPW-PPI)
-
ppi_proportion() - Prediction-Powered Category Proportion & Prevalence Estimation (PPI / PPI++)
-
ppi_lm() - Prediction-Powered Linear Regression (PPI / PPI++ / Calibrated Control Variate)
-
ppi_glm() - Prediction-Powered Generalized Linear Model (PPI / PPI++ / Calibrated)
-
ppi_calibrated() - Cross-Fitted Non-Linear Calibration for Prediction-Powered Inference
-
ppi_clustered() - Cluster-Robust Prediction-Powered Inference (PPI / PPI++)
-
ppi_lmer() - Multilevel Random-Intercept Prediction-Powered Inference (
ppi_lmer)
Study Planning, Sampling & APA Reporting
Stratified validation sampling, sample-size/power planning, and publication-ready APA 7th-edition tables.
-
select_validation_sample() - Select a Human Validation Sample with Exact Inclusion Probabilities & IPW Weights
-
ppi_sample_size() - Plan Human Validation Sample Size for Prediction-Powered Inference (PPI++)
-
ppi_power() - Compute Projected Precision and Statistical Power for PPI++
-
format_apa_table() - Format Publication-Ready APA Comparison Tables
Diagnostic Visualizations
Publication-ready ggplot2 autoplot() methods for all diagnostic and inference objects.
-
autoplot(<llm_g_study>) - Plot Generalizability Study Variance Decomposition
-
autoplot(<llm_d_study>) - Plot Decision Study (D-Study) Reliability Curves
-
autoplot(<llm_calibration>) - Plot LLM-vs-Human Calibration Diagnostics
-
autoplot(<llm_human_irr>) - Plot Human Inter-Rater Reliability Ceiling vs. LLM Calibration
-
autoplot(<llm_drift>) - Plot Temporal or Model-Version Scoring Drift
-
autoplot(<llm_dpf>) - Plot Differential Prompt Functioning (DPF) Diagnostics
-
autoplot(<llm_ppi>) - Plot Prediction-Powered Inference vs. Human-Only & Naive LLM Benchmarks
-
autoplot(<llm_ppi_power>) - Plot PPI++ Power or Standard Error Curves
-
reexportsautoplot - Objects exported from other packages
-
ema_coded - Synthetic Multi-Facet EMA Diary LLM Coding Dataset
-
simulate_coding_study() - Simulate a Realistic Multi-Facet LLM Coding & Validation Study