confounding-assessment

Enumerate confounding variables and construct causal DAGs for exposure-outcome pairs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/j-walheim/Critical-AI-Scientist --skill confounding-assessment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: confounding-assessment
Source: https://github.com/j-walheim/Critical-AI-Scientist/tree/main/agent_definition/.claude/skills/confounding-assessment
Command: npx skills add https://github.com/j-walheim/Critical-AI-Scientist --skill confounding-assessment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires networkx, matplotlib, pandas, pydot, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill systematically identifies potential confounding variables in observational studies, assesses their measurability, and helps construct causal diagrams to understand their impact on the exposure-outcome relationship.

Core Features & Use Cases

  • Confounder Enumeration: Lists the most significant potential confounders for a given exposure-outcome pair.
  • Causal DAG Construction: Generates a visual representation of causal relationships.
  • Collider Detection: Identifies potential issues with collider bias in adjustment strategies.
  • Use Case: When evaluating a new drug's effectiveness based on observational data, this Skill helps researchers identify and account for factors like patient demographics, lifestyle choices, or pre-existing conditions that might distort the true effect of the drug.

Quick Start

Use the confounding-assessment skill to enumerate confounders for the exposure 'drug_a' and outcome 'heart_attack'.

Frequently Asked Questions about confounding-assessment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify potential confounding variables in an observational study?

Identifying confounding variables requires enumerating potential factors for a specified exposure-outcome pair, assessing their measurability and adjustability, and constructing a causal directed acyclic graph (DAG) to visualize causal relationships.

What is collider bias and how do I check for it when adjusting confounders?

Collider bias occurs when adjusting for a variable influenced by both the exposure and outcome. You can check for colliders in proposed adjustment strategies by evaluating the causal DAG structure to avoid distorting the true effect.

How do I quantify the impact of unmeasured confounding in epidemiology?

Quantifying unmeasured confounding in epidemiology involves computing an informal E-value. This metric estimates the minimum strength of association an unmeasured confounder must have with both exposure and outcome to explain away the observed effect.

Can I generate a visual causal DAG using networkx and matplotlib for bias assessment?

Yes, you can generate a visual causal DAG for bias assessment. Constructing the directed acyclic graph utilizes networkx for structural graph logic and matplotlib for rendering the visual representation of causal relationships.

Does this confounding assessment approach work for evaluating drug effectiveness with observational data?

Yes, this confounding assessment approach works for evaluating drug effectiveness with observational data. It systematically identifies and accounts for pre-existing conditions or demographics that might distort the true effect of the exposure.

What are the limitations of using an informal E-value for unmeasured confounding?

The informal E-value provides a heuristic estimate rather than a formal statistical bound for unmeasured confounding. It indicates the potential impact of unmeasured factors but requires careful interpretation alongside the causal DAG and measured confounders.