DATETHU AUG 20
TIME4–5 PM
MODEPOLICY BRIEFING LAB

CODING LAB 2

Build evidence you would send to a policy director.

Review a draft, commission a construction pipeline, create a grouped briefing table, and decide what the evidence can support.

DOWNLOAD LAB 2 PROJECT ↓OPEN LAB HANDOUT →

THE ASSIGNMENT

One hour. One policy director. Four working products.

Construct a defensible dataset and report how income and under-five mortality differed across World Bank income groups in 2022. Decide what evidence is trustworthy, document any material data problem, and state what the results do—and do not—show.

The project supplies both a draft briefing file and documented course data. Those files may not agree. Codex has two roles: first, it reviews the draft without changing it; later, it constructs and runs a bounded pipeline. In both roles, you decide which claims and outputs survive.

DOWNLOAD THE LAB HANDOUT ↓DOWNLOAD THE COMPLETE LAB FILES ↓
FOUR PRODUCTSONE BRIEFING
code/02-health-agent-pipeline.R
outputs/02-health-analysis.csv
outputs/02-health-briefing-by-income.csv
BRIEFING.md

Codex may help produce and check the analysis. The release decision and policy language remain yours.

MinutesDecision
00–08Specify the unit, key, and a briefing-changing failure.
08–18Review the draft and independently verify one important finding in R.
18–40Commission, observe, and inspect the construction pipeline.
40–48Accept, revise, or reject the constructed dataset.
48–60Build the grouped table and decide what to tell the director.

DECISION GATES 1 + 2

Can we trust the draft?

Define the intended economy–year observation before inspecting the records. Then ask Codex for a read-only review. Select the finding most likely to change a count, median, plot, or conclusion. Then write and run a small R check that tests it directly against the project files. A persuasive explanation is not evidence that the finding is correct.

PREDICTName the failure.

What record problem could change the director’s briefing?

REVIEWLet Codex make claims.

Require files, variables, economy–years, and observed values.

VERIFYCheck the most important finding.

Use R to confirm, contradict, or qualify it from the records.

ADJUDICATESeparate fact from inference.

Accept, revise, or reject the agent’s claim.

SOURCE AUTHORITY

A confident agent, a recent modification date, or a promising filename does not make a file authoritative. Ask which project documentation and provenance support the choice.

DECISION GATE 3

Can we trust the constructed dataset?

Commission Codex to choose and justify the input, create code/02-health-agent-pipeline.R, run it, and save outputs/02-health-analysis.csv. Observe the work: which files were read, which actions required permission, which source was selected, and which code actually ran?

JudgmentQuestionWhat it does not prove
ExecutionDid the script run and save the requested file?That the file represents the intended evidence.
Output evidenceDoes the file have the required shape and match documented records?That the rule used to produce it was defensible.
MethodWould the result survive a change in row order or unsupported source?That the policy interpretation follows.

Run the independent audit from code/lab-2-starter.R, inspect the generated script, and make an explicit accept, revise, or reject decision. Correct output by accident is not a defensible method.

DECISION GATE 4

Can we trust the briefing?

Add the grouped calculation to the accepted pipeline. For 2022, compare n() with n_distinct(iso3c), explain why those quantities can differ, and decide which belongs in the policy briefing. Then report one row per current income group with the number of economies, median GDP per capita (PPP), and median under-five mortality.

UNITName the new observation.

One row represents a current income group in 2022.

GROUPBuild the table.

Use unweighted counts and medians after the dataset survives review.

VERIFYRecompute independently.

Codex checks the saved table without rewriting your code.

BRIEFDecide what can be said.

Give one numerical conclusion and refuse one unsupported claim.

FINAL QUESTION

Would you send this briefing to the policy director? Identify the strongest evidence supporting your decision, one failure you ruled out, one numerical conclusion the table supports, and one statement you would refuse to make.