# Aetia Clinical Rwe Pro

> Automated Target Trial Emulation and RWE auditing for clinical EHR, claims, and registry studies.

Aetia Clinical Rwe Pro is a subscription AI agent skill on Agensi by SlightlyHappy, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [SlightlyHappy](https://www.agensi.io/creators/slightlyhappy)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/aetia-clinical-rwe-pro
- Tags: ai-agents, healthcare-biotech-rwe, clinical-trials, epidemiology, causal-inference, python

## About this skill

Observational studies using EHR and claims data often fail regulatory review due to time-zero misalignment, immortal-time bias, and residual confounding. This skill enforces the Hernan-Robins target trial emulation framework to ensure your Real-World Evidence (RWE) meets FDA and EMA standards for causal inference.

### What it does
- **Enforces Target Trial Emulation** by aligning eligibility, treatment assignment, and follow-up to eliminate immortal-time and prevalent-user bias.
- **Automates Causal Diagnostics** including covariate balance checks using Standardized Mean Differences (SMD) and Kish Effective Sample Size (ESS).
- **Runs Doubly-Robust Estimators** like 5-fold cross-fitted Augmented Inverse Probability Weighting (AIPW) and Double Machine Learning (DML).
- **Quantifies Unmeasured Confounding** through E-values, Cinelli-Hazlett robustness values, and Negative Control Outcome (NCO) falsification tests.
- **Generates Regulatory Dossiers** by populating STROBE and RECORD-PE compliant templates with verified statistical outputs.

### How it works
1. **Define the Target Trial** using the 7-component specification table to lock down eligibility, treatment strategies, and time-zero.
2. **Verify the Causal Graph** to identify confounders, mediators, and colliders, ensuring no post-treatment variables are adjusted for.
3. **Execute the RWE Audit Script** on your patient-level CSV to calculate stabilized IPTW, AIPW, and subgroup CATE.
4. **Review Sensitivity Metrics** including E-values and benchmarks against observed clinical risk factors like age or Charlson index.

### Frameworks & tools
Built for Python 3.10+ using `numpy`, `scipy`, `pandas`, and `scikit-learn`. Compatible with `aetia-mcp` for formal Shpitser-Pearl ID and S-admissibility proofs.

### Why this beats prompting it yourself
Generic prompts often fail to detect subtle time-zero shifts or collider bias in clinical data. This skill forces a rigorous 5-gate protocol that mirrors the methodology used in professional pharmacoepidemiology and regulatory submissions.

### Use cases
- **Regulatory Submissions** for FDA/EMA RWE dossiers using STROBE/RECORD-PE standards.
- **Pharmacoepidemiology Research** comparing active drugs while suppressing healthy-user bias.
- **Post-Market Surveillance** to monitor long-term outcomes and safety signals in real-world cohorts.
- **Subgroup Analysis** using DR-Learners to identify heterogeneous treatment effects across clinical strata.

### Known limitations
Requires patient-level data in CSV format with pre-defined exposure and outcome columns. It cannot fix fundamental data quality issues like non-differential outcome misclassification.

## Requires

- Aetia MCP
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Aetia Clinical Rwe Pro skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help my observational study pass regulatory review?

Aetia Clinical RWE Pro automates the Hernan-Robins framework to eliminate common pitfalls like immortal-time bias and time-zero misalignment that often lead to regulatory rejection of observational studies. It provides the rigorous causal diagnostics—such as E-values and AIPW estimators—needed to transform raw EHR or claims data into FDA/EMA-standard evidence.

### What are the technical requirements and supported data formats?

The skill requires patient-level data in CSV format with clearly defined exposure, outcome, and covariate columns. It is built for Python 3.10+ environments and integrates seamlessly with any AI agent that supports the `aetia-mcp` protocol for formal causal identification proofs.

### What exactly is included in the skill package?

Each purchase includes the core Target Trial Emulation logic, a suite of doubly-robust estimators (AIPW/DML), sensitivity analysis tools (E-values/NCO tests), and automated reporting templates compliant with STROBE and RECORD-PE standards. You also receive the configuration documentation for the 7-component specification table.

### Can't I just prompt a standard AI model to perform RWE analysis?

Unlike generic prompts, this skill enforces a strict 5-gate protocol and checks for complex issues like collider bias and post-treatment variable adjustment. It uses verified statistical libraries to perform calculations that large language models cannot reliably execute through text generation alone.

### Are there any specific limitations to the causal inference engine?

The skill can handle high-dimensional covariate sets, but it is limited by the quality of your underlying data. It cannot correct for fundamental issues like non-differential outcome misclassification or missing data that is not "Missing at Random" (MAR).

### How are updates and new regulatory standards handled?

Buyers receive lifetime access to the current version, including any minor patches or bug fixes. Major version updates that introduce new regulatory compliance modules or advanced machine learning estimators may be offered as separate upgrades or through a discounted maintenance plan.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
