xiaohongshu
xiaohongshu
meta-analysis
Use when performing meta-analysis, pooling study data, generating forest plots, funnel plots, assessing heterogeneity, or conducting subgroup and sensitivity analyses. Invoke for any statistical synthesis of multiple studies.
Full skill instructions
This skill guides statistical synthesis of multiple studies using R.
Invoke this skill when the user:
library(meta) # Primary meta-analysis package
library(metafor) # Advanced methods
library(dmetar) # Companion functions
Use metabin() for dichotomous data:
ma <- metabin(
event.e = events_intervention,
n.e = n_intervention,
event.c = events_control,
n.c = n_control,
studlab = study_id,
data = data,
sm = "OR", # "RR" for Risk Ratio, "RD" for Risk Difference
method = "MH", # Mantel-Haenszel
random = TRUE, # Random-effects model
prediction = TRUE # Prediction interval
)
summary(ma)
Use metacont() for continuous data:
ma <- metacont(
n.e = n_intervention,
mean.e = mean_intervention,
sd.e = sd_intervention,
n.c = n_control,
mean.c = mean_control,
sd.c = sd_control,
studlab = study_id,
data = data,
sm = "SMD", # "MD" for Mean Difference
random = TRUE
)
Use metaprop() for single-arm rates:
ma <- metaprop(
event = events,
n = total,
studlab = study_id,
data = data,
sm = "PLOGIT", # Logit transformation
random = TRUE
)
Use metagen() for pre-calculated HRs:
ma <- metagen(
TE = log(HR),
seTE = (log(HR_upper) - log(HR_lower)) / 3.92,
studlab = study_id,
data = data,
sm = "HR",
random = TRUE
)
# Save to file (required for non-interactive sessions)
png("forest_plot.png", width=1200, height=800, res=150)
forest(ma,
sortvar = TE, # Sort by effect size
xlim = c(0.1, 10), # X-axis limits for OR/RR
at = c(0.1, 0.25, 0.5, 1, 2, 4, 10),
leftcols = c("studlab", "n.e", "n.c"),
leftlabs = c("Study", "n (Int)", "n (Ctrl)"),
rightcols = c("effect", "ci"),
rightlabs = c("OR", "95% CI"),
prediction = TRUE # Show prediction interval
)
dev.off()
| I² Value | Interpretation |
|---|---|
| 0-25% | Low heterogeneity |
| 25-50% | Moderate heterogeneity |
| 50-75% | Substantial heterogeneity |
| >75% | Considerable heterogeneity |
Key statistics to report:
# By categorical variable
update(ma, subgroup = study_design, tau.common = FALSE)
# Forest plot with subgroups
forest(ma, subgroup = study_design, test.subgroup = TRUE)
# Leave-one-out analysis
metainf(ma, pooled = "random")
# Influence diagnostics
influence(ma)
# Exclude high risk of bias studies
ma_low_rob <- update(ma, subset = rob_overall != "High")
# Funnel plot
png("funnel_plot.png", width=800, height=600, res=150)
funnel(ma, studlab = TRUE)
dev.off()
# Egger's test (recommended for >10 studies)
metabias(ma, method.bias = "Egger")
# Begg's test (rank correlation)
metabias(ma, method.bias = "Begg")
# Trim-and-fill
tf <- trimfill(ma)
summary(tf)
funnel(tf)
Always report:
library(meta)
# Load data
data <- read.csv("extraction_data.csv")
# Meta-analysis
ma <- metabin(
event.e = events_int, n.e = n_int,
event.c = events_ctrl, n.c = n_ctrl,
studlab = study_id, data = data,
sm = "OR", method = "MH", random = TRUE
)
# Results
summary(ma)
# Forest plot
png("forest_plot.png", width=1200, height=800, res=150)
forest(ma, sortvar=TE, prediction=TRUE)
dev.off()
# Funnel plot
png("funnel_plot.png", width=800, height=600, res=150)
funnel(ma)
dev.off()
# Publication bias
metabias(ma, method.bias="Egger")
# Sensitivity
metainf(ma)
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