Deep methodology knowledge for MAIC including assumptions, weight diagnostics, ESS interpretation, and anchored vs unanchored decisions. Use when conducting or reviewing MAIC analyses.
/plugin marketplace add choxos/BiostatAgent/plugin install choxos-itc-modeling-plugins-itc-modeling@choxos/BiostatAgentThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Comprehensive methodological guidance for conducting rigorous Matching-Adjusted Indirect Comparisons following NICE DSU TSD 18.
For Anchored MAIC:
Critical: MAIC assumes that adjusting for measured covariates
removes all population differences that modify treatment effects.
If there are unmeasured effect modifiers:
├── Anchored MAIC: Biased indirect comparison
└── Unanchored MAIC: Even more biased
There is NO WAY to test this assumption with available data.
Include covariates that are:
├── Effect modifiers (interact with treatment effect)
│ - Based on clinical evidence
│ - Biological plausibility
│ - Subgroup analyses from trials
├── Available in both trials
│ - IPD: Individual-level data
│ - AgD: Published summary statistics
└── Different between trial populations
- Check if actually imbalanced
- No need to match on similar values
ESS = (Σ weights)² / Σ(weights²)
Represents the "equivalent" unweighted sample size
that would give same precision as weighted analysis.
| ESS (% of original) | Interpretation | Recommendation |
|---|---|---|
| >70% | Good | Proceed with confidence |
| 50-70% | Acceptable | Proceed with caution |
| 30-50% | Concerning | Reconsider covariates |
| <30% | Poor | Results likely unreliable |
check_weights(weights_obj)
# Look at ESS and ESS percentage
# Check for extreme weights
summary(weights_obj$data$weights)
max(weights) / sum(weights) # Single observation influence
# Before vs After weighting
# Should see AgD targets achieved after weighting
Scenario:
Methodology:
Advantages:
Scenario:
Methodology:
Critical Limitations:
Is there a common comparator in both trials?
├── Yes → ANCHORED MAIC (strongly preferred)
│ - Adjust for effect modifiers
│ - Bucher method for indirect comparison
│
└── No → Consider alternatives first
├── Can NMA with other studies provide estimate?
├── Can we use ML-NMR with partial network?
└── Last resort: UNANCHORED MAIC
- Adjust for ALL prognostic factors
- Report with strong caveats
- Sensitivity analysis
library(maicplus)
# 1. Prepare targets from AgD
agd_targets <- c(
AGE = 62.5,
MALE = 0.55,
ECOG1 = 0.35
)
# 2. Center IPD
ipd_centered <- center_ipd(ipd, agd_targets)
# 3. Estimate weights
weights <- estimate_weights(
data = ipd_centered,
centered_colnames = c("AGE_centered", "MALE_centered", "ECOG1_centered"),
n_boot_iteration = 1000,
set_seed_boot = 12345
)
# 4. Check weights (CRITICAL)
check_weights(weights)
# - ESS should be >50% of original
# - No extreme weights
# - Balance achieved
# 5. Run anchored MAIC
result <- maic_anchored(
weights_object = weights,
ipd = ipd,
pseudo_ipd = pseudo_ipd,
trt_ipd = "TreatmentA",
trt_agd = "TreatmentB",
trt_common = "Placebo",
endpoint_type = "binary",
eff_measure = "OR",
boot_ci_type = "perc"
)
# 6. Report
result$inferential$summary
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.