Reported p-values match test statistics
Parses APA-style results such as "t(48) = 2.1, p = .04" and recomputes the p-value.
When it applies: Papers with full text. Most economics papers have no APA strings and return not_applicable.
Inputs
- Paper full text
- scipy
When to run it
Cheap filters, cheapest first. The planner runs the check only on targets that pass them; the rest get a not_applicable row.
- Full text held.
- Field is psychology, medicine, health, education or other social sciences that report APA-style tests (OpenAlex
field). Economics rarely does. - Cheap text test: the text matches
[tFr]\s*\(\d+orchi.?2\s*\(at least once.
Filter as SQL over the audit views (D1):
SELECT t.paper_id FROM audit_target t JOIN paper_fulltext f USING (paper_id) WHERE f.has_fulltext = 1 AND t.openalex_type = 'article'
Decision-model trigger: None needed: the filter is exact and the check itself costs less than a model call.
How to run
This check is implemented in audit/pilot_checks.py (PR 10) and run by the planner:
python3 audit/plan.py --papers papers.json --openalex openalex.json --citations citations.csv --texts texts.db --tier 1 --check statcheck --out out/
Then load out/results.jsonl into audit_run / audit_result (see audit/README.md).
Steps
- Find t, F, chi-square, r and z statistics with their degrees of freedom and reported p.
- Recompute the two-tailed p, allowing for rounding of the statistic.
- Mark a gross inconsistency when significance at .05 flips.
Outcomes
| outcome | meaning |
|---|---|
| fail | any gross inconsistency |
| flag | any inconsistency |
| pass | all consistent |
| not_applicable | no APA statistics |
Every result row carries evidence (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning.
False positives
One-tailed tests, corrected p-values, and PDF extraction errors in minus or equals signs.
Precision: The statcheck literature reports about 90% or better for parsed APA strings.
Prompt to give an agent
Run the policyreplication audit check `statcheck` following audit/skills/statcheck/SKILL.md in github.com/Jomanw/policyreplication. Target corpus: sig2025 (change as needed). Write one result per target to out/results.jsonl in the audit_result shape (check_id, version, paper_id, citation_id, outcome, value, evidence). Then report outcome counts and list every fail and flag with its evidence for human review. Do not publish or contact anyone about a flag.
Rules for agents
- Write a result for every target, including
not_applicable, so denominators stay honest. - A flag is a lead for human review, not a finding. Never publish or report a flag that names a paper or its authors until a person has checked it.
- Use only legally obtained full text. Record blocks; never bypass them.
- Avoid paid LLM calls unless the check's tier is 2 and a budget has been set.
Skill file
--- name: audit-statcheck description: Runs the policyreplication audit check `statcheck` (reported p-values match test statistics). Use when auditing papers cited by U.S. policy documents for this check. check_id: statcheck status: built tier: 1 unit: paper needs: fulltext cost: cpu module: Reported-numbers consistency depends_on: [] --- # Reported p-values match test statistics Parses APA-style results such as "t(48) = 2.1, p = .04" and recomputes the p-value. **When it applies:** Papers with full text. Most economics papers have no APA strings and return not_applicable. ## Inputs - Paper full text - scipy ## When to run it Cheap filters, cheapest first. The planner runs the check only on targets that pass them; the rest get a `not_applicable` row. - Full text held. - Field is psychology, medicine, health, education or other social sciences that report APA-style tests (OpenAlex `field`). Economics rarely does. - Cheap text test: the text matches `[tFr]\s*\(\d+` or `chi.?2\s*\(` at least once. Filter as SQL over the audit views (D1): ```sql SELECT t.paper_id FROM audit_target t JOIN paper_fulltext f USING (paper_id) WHERE f.has_fulltext = 1 AND t.openalex_type = 'article' ``` **Decision-model trigger:** None needed: the filter is exact and the check itself costs less than a model call. ## How to run This check is implemented in `audit/pilot_checks.py` (PR 10) and run by the planner: ``` python3 audit/plan.py --papers papers.json --openalex openalex.json --citations citations.csv --texts texts.db --tier 1 --check statcheck --out out/ ``` Then load `out/results.jsonl` into `audit_run` / `audit_result` (see `audit/README.md`). ## Steps 1. Find t, F, chi-square, r and z statistics with their degrees of freedom and reported p. 2. Recompute the two-tailed p, allowing for rounding of the statistic. 3. Mark a gross inconsistency when significance at .05 flips. ## Outcomes | outcome | meaning | | --- | --- | | fail | any gross inconsistency | | flag | any inconsistency | | pass | all consistent | | not_applicable | no APA statistics | Every result row carries `evidence` (JSON: quotes, values, ids, URLs) so a reviewer can confirm it without rerunning. ## False positives One-tailed tests, corrected p-values, and PDF extraction errors in minus or equals signs. **Precision:** The statcheck literature reports about 90% or better for parsed APA strings. ## Prompt to give an agent ``` Run the policyreplication audit check `statcheck` following audit/skills/statcheck/SKILL.md in github.com/Jomanw/policyreplication. Target corpus: sig2025 (change as needed). Write one result per target to out/results.jsonl in the audit_result shape (check_id, version, paper_id, citation_id, outcome, value, evidence). Then report outcome counts and list every fail and flag with its evidence for human review. Do not publish or contact anyone about a flag. ``` ## Rules for agents - Write a result for every target, including `not_applicable`, so denominators stay honest. - A flag is a lead for human review, not a finding. Never publish or report a flag that names a paper or its authors until a person has checked it. - Use only legally obtained full text. Record blocks; never bypass them. - Avoid paid LLM calls unless the check's tier is 2 and a budget has been set.