Estimate whether LLM-predicted communication apprehension (CA) from demographic / contextual personas systematically errs by group membership. Predictions are compared to ground-truth PRCA subscale scores computed from Qualtrics Likert items.
2 Pipeline
Note
Private full-cohort inputs live in ../sibling_data/ (File A + File B stacked Prolific waves; File C Qualtrics; merge on Q0). Path resolution also accepts staged cloud copies (/tmp/sibling_data or CA_SIBLING_DATA). Excerpt fixtures under data/excerpts/ are for unit tests only — Posit Connect pages never display excerpt statistics (they use full-cohort runs or committed artifacts/posit_full_cohort/).
Comfort / low-anxiety items are reverse-coded as 6 - score.
Each subscale is the sum of six items → range 6–30.
Bands default to low (≤13), moderate (14–19), high (≥20).
4 Persona tiers
Cumulative information revealed to the model as natural-language, second-person digital-twin narratives (AI Terrarium framing (Sun et al., 2026) — “You are a …”), not structured questionnaire checklists:
Core ladder (RQ1–RQ3):
demos
employment
geo (approximate survey lat/long at 1 decimal; country not repeated)
transit (Q26/Q28 signal-first; skip rides-per-day when frequency is Never)
full — all tabular fields plus Qualtrics free-response attitudes
# Place exports in ../sibling_data/ first (never commit them)ca-personas prepare --join innerca-personas score-gt --join innerca-personas build-personas --tiers demos employment geo transit fullca-personas run --provider mock --join inner
6 Providers
Tip
Set CA_LLM_PROVIDER to ollama or openrouter (see .env.example). Use --provider mock for offline dry runs and unit tests. Posit Connect Cloud renders load committed full-cohort vLLM exports and artifact tables, not mock predictions.
7 vLLM batch path
For offline GPU batch inference, persona prompts are exported to the digital-twin CSV schema (caseid, prompt) and scored with python -m inference.predict_vllm. Results (generated_text) are ingested back into the same CA prediction table used by evaluate_predictions.
Sun, L., Li, Z., Khwaja, O., & Rogers, T. (2026). Designing digital twins for AI opinion simulation: How prompt framing and depth drive predictive fidelity. Extended Abstracts, Computational Methods Division, 76th Annual Conference of the International Communication Association.