xiaohongshu
xiaohongshu
maic-methodology
Deep methodology knowledge for MAIC including assumptions, weight diagnostics, ESS interpretation, and anchored vs unanchored decisions. Use when conducting or reviewing MAIC analyses.
Full skill instructions
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
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience