Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for epidemiologists

Confounder Sensitivity Analysis Agent

A sensitivity section that shows which conclusions survive alternate adjustment and unmeasured confounding

Confounder Sensitivity Analysis Agent: what goes in, what the agent does and what you get

What it does

Observational study results are often reported with one adjustment set, and readers cannot tell whether unmeasured confounding could explain the effect. This agent reruns the models with alternate adjustment sets, then computes bounds for how strong an unmeasured confounder would need to be to change the finding, such as an E-value. It flags results that flip sign or lose significance, and states which conclusions hold. It rechecks the models when new covariates are added. It also checks that every model ran on the same sample. The analyst approves the sensitivity section. Edge case: adding one covariate removes 20 percent of the sample, so the agent flags the change before comparing results.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueYes, continueApprovedNoNo 1 STARTS WHEN Primary analysis complete 2 USES A TOOL Read the analysis plan and dataset 3 DOES Define alternate adjustment sets 4 USES A TOOL Rerun the models for each set 5 CHECKS THE RESULT Do all models run on the same sample size andcomplete cases? If not: align the sample or record the difference. Backto step 3. 6 DOES Compute bounds for unmeasured confounding 7 DOES Compare estimates across sets and flag sign orsignificance changes 8 CHECKS THE RESULT Do the flagged results survive when new covariatesare added? If not: rerun with the extra covariates and compare.Back to step 4. 9 DOES Draft the sensitivity table and text 10 YOU APPROVE Analyst approves the sensitivity section 11 RESULT Sensitivity analysis report
Read the steps as a list
  1. Primary analysis complete
  2. Read the analysis plan and dataset
  3. Define alternate adjustment sets
  4. Rerun the models for each set
  5. Do all models run on the same sample size and complete cases?If not: align the sample or record the difference. Back to step 3.
  6. Compute bounds for unmeasured confounding
  7. Compare estimates across sets and flag sign or significance changes
  8. Do the flagged results survive when new covariates are added?If not: rerun with the extra covariates and compare. Back to step 4.
  9. Draft the sensitivity table and text
  10. Analyst approves the sensitivity sectionThe agent waits here for your OK.
  11. Sensitivity analysis report

How it decides

A conclusion is robust when it keeps its direction and significance across the alternate sets and the confounder bound is large.

  • Flag a result when the estimate changes sign or the interval crosses the null
  • Use the same complete cases for all sets
  • Report the confounder strength needed to explain the result
  • Prespecify the sets and note any extra ones

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Adjustment sets to test
  • Significance level (default 0.05)
  • Confounding measure
  • Sample handling rule

What keeps you in control

It always asks you first

  • Sensitivity section
  • Any change to the primary analysis

Hard limits

  • Never changes the primary analysis
  • Never describes a result as causal

It stops when

  • Done: all sets run and conclusions classified
  • Stop: dataset lacks the covariates

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensThe primary model gave a hazard ratio of 1.42 for exposure. Adding smoking changed the sample from 5,100 to 4,070, so the sample check failed. The agent reran all sets on the 4,070 and found estimates from 1.31 to 1.45, all significant. The confounder bound showed a risk ratio of 2.1 would be needed to explain it. The analyst approved the section.

More agents for epidemiologists