pharmacoepidemiology

Design and evaluate pharmacoepidemiologic studies using real-world observational data.

13|5|Updated May 4, 2026
One-click install
npx skills add https://github.com/awslabs/hcls-agent-skills --skill pharmacoepidemiology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pharmacoepidemiology
Source: https://github.com/awslabs/hcls-agent-skills/tree/main/skills/pharmacoepidemiology
Command: npx skills add https://github.com/awslabs/hcls-agent-skills --skill pharmacoepidemiology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the high risk of bias in observational research by providing a structured framework for causal inference, ensuring that drug safety and effectiveness studies are scientifically defensible.

Core Features & Use Cases

  • Bias Mitigation: Identifies and corrects for common pitfalls like immortal time bias, confounding by indication, and prevalent user bias.
  • Study Design Frameworks: Implements target trial emulation and propensity score methods (matching, weighting, stratification) to balance cohorts.
  • Use Case: Use this skill to evaluate whether a proposed study design for a new drug safety analysis correctly aligns time zero and accounts for time-varying confounders before writing any analysis code.

Quick Start

Use the pharmacoepidemiology skill to critique my study design for comparing drug A and drug B and identify potential sources of immortal time bias.

Frequently Asked Questions about pharmacoepidemiology

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

FAQPage Schema
How do I design an observational study to avoid immortal time bias?

To avoid immortal time bias in observational studies, align time zero for all cohort members and use an incident-user design. This skill provides a structured framework to identify and correct such common pitfalls in real-world data analysis.

What is target trial emulation in causal inference?

Target trial emulation is a causal inference framework that maps observational data to a hypothetical randomized experiment. This skill uses it to ensure drug safety and effectiveness studies are scientifically defensible by explicitly defining eligibility, treatment strategies, and outcomes.

How do I use propensity score matching to balance cohorts?

Propensity score matching balances cohorts by pairing treated and untreated subjects with similar covariate distributions. This skill supports propensity score modeling alongside weighting and stratification to achieve standardized balance diagnostics for valid causal effect estimation.

Can I evaluate active comparators for a new drug safety analysis?

Yes, evaluating active comparators is supported to minimize confounding by indication when comparing two treatments. This skill helps critique proposed study designs to ensure they correctly account for time-varying confounders before running any analysis code.

What is the best way to perform sensitivity analysis for unmeasured confounding?

The best way to address unmeasured confounding is applying rigorous sensitivity analysis frameworks to test how robust effect estimates are to hidden biases. This skill provides a structured methodological framework to evaluate these biases in observational real-world data.