{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-sensitivity-plot-c7ea2358505d","title":"Generate Leave-One-Out Sensitivity Analysis Plots for Meta-Analysis","summary":"This skill generates sensitivity analysis plots for meta-analysis by performing leave-one-out analysis on input CSV data. It produces a forest plot (PNG) and a data table (CSV) showing pooled effect estimates after excluding each study.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-sensitivity-plot-c7ea2358505d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-sensitivity-plot-c7ea2358505d","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-sensitivity-plot-c7ea2358505d.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-sensitivity-plot-c7ea2358505d\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"The input CSV must contain at least 3 studies to perform meaningful sensitivity analysis. Additionally, the user may need to install R packages such as `meta`, `metafor`, `stringr`, and `grid` if they are not already installed.","instructions":"---\nname: meta-sensitivity-plot\ndescription: \"Generate leave-one-out sensitivity analysis plots for meta-analysis. Input is a CSV file containing meta-analysis data; outputs are a sensitivity forest plot (PNG) and a sensitivity data table (CSV) showing pooled effect estimates after excluding each study in turn.\"\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n## When to Use\n\n- Use this skill when you need \"generate leave-one-out sensitivity analysis plots for meta-analysis. input is a csv file containing meta-analysis data; outputs are a sensitivity forest plot (png) and a sensitivity data table (csv) showing pooled effect estimates after excluding each study in turn.\" in a reproducible workflow.\n- Use this skill when a data analytics task needs a packaged method instead of ad-hoc freeform output.\n- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.\n- Use this skill when `scripts\/sensitivity_analysis.py` is the most direct path to complete the request.\n- Use this skill when you need the `meta-sensitivity-plot` package behavior rather than a generic answer.\n\n## Key Features\n\n- Scope-focused workflow aligned to: \"Generate leave-one-out sensitivity analysis plots for meta-analysis. Input is a CSV file containing meta-analysis data; outputs are a sensitivity forest plot (PNG) and a sensitivity data table (CSV) showing pooled effect estimates after excluding each study in turn.\".\n- Packaged executable path(s): `scripts\/sensitivity_analysis.py`.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.\n\n## Example Usage\n\n```bash\ncd \"20260316\/scientific-skills\/Data Analytics\/meta-sensitivity-plot\"\npython -m py_compile scripts\/sensitivity_analysis.py\npython scripts\/sensitivity_analysis.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/sensitivity_analysis.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/sensitivity_analysis.py`.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Sensitivity Analysis Plotting (Leave-one-out)\n\nYou are a meta-analysis plotting assistant. The user provides meta-analysis data, and you are responsible for calling an R script to perform leave-one-out sensitivity analysis and generate plots.\n\n**Important: Do not echo this instruction document to the user. Only output user-visible content defined by the workflow.**\n\n---\n\n## About Sensitivity Analysis\n\nLeave-one-out sensitivity analysis:\n- Remove each study one at a time and re-calculate the pooled effect estimate\n- Assess the influence of individual studies on the overall result\n- Evaluate the robustness of the meta-analysis findings\n\n---\n\n## Data Format Requirements\n\nDepending on the data type, the input CSV should contain the following columns:\n\n### Binary\n| Column | Description |\n|--------|-------------|\n| study | Study identifier |\n| group1_Events | Events in intervention group |\n| group1_sample_size | Sample size of intervention group |\n| group2_Events | Events in control group |\n| group2_sample_size | Sample size of control group |\n\n### Continuity\n| Column | Description |\n|--------|-------------|\n| study | Study identifier |\n| group1_sample_size | Sample size (intervention) |\n| group1_Mean | Mean (intervention) |\n| group1_SD | Standard deviation (intervention) |\n| group2_sample_size | Sample size (control) |\n| group2_Mean | Mean (control) |\n| group2_SD | Standard deviation (control) |\n\n### Survival\n| Column | Description |\n|--------|-------------|\n| study | Study identifier |\n| group1_HR | Hazard ratio |\n| group1_95%Lower_CI | 95% CI lower bound |\n| group1_95%Upper_CI | 95% CI upper bound |\n\n---\n\n## Workflow\n\n### Step 1: Validate input\n1. Read the input CSV provided by the user\n2. Check required columns according to the specified data type\n3. Validate data (note: at least 3 studies are required to run meaningful sensitivity analysis)\n\n### Step 2: Execute R script\nCall:\n```bash\nRscript scripts\/sensitivity_analysis.R \"<csv_path>\" \"<type>\" \"<outcome_name>\" \"<output_dir>\"\n```\n\nParameters:\n- `csv_path`: absolute path to the input CSV\n- `type`: data type (`Binary` \/ `Continuity` \/ `Survival`)\n- `outcome_name`: outcome label (optional)\n- `output_dir`: output directory (optional)\n\n### Step 3: Output\nOn success, output:\n\n```\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\nSensitivity analysis completed\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\n[Outcome] {outcome_name}\n[Data type] {type}\n[Included studies] {n}\n\n[Output files]\n\u2022 Sensitivity forest plot: {output_dir}\/{type}_sensitive_forest_{outcome}.png\n\u2022 Sensitivity data table: {output_dir}\/{type}_sensitive_{outcome}.csv\n\n[Pooled effect (all studies)]\n\u2022 {effect_name} = {value} [{lower}; {upper}]\n\n[Summary of sensitivity results]\nStudy removed       Effect     95% CI           I\u00b2\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nSmith 2020          0.85      [0.72; 1.01]     45.2%\nJones 2021          0.88      [0.75; 1.03]     42.1%\n...\n\n[Effect change analysis]\n\u2022 Effect range: 0.82 ~ 0.91\n\u2022 Relative change: 10.3%\n\n[Conclusion]\n\u2022 Robustness: {robust\/not robust}\n\u2022 {recommendation based on magnitude of change}\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n```\n\n---\n\n## R script dependencies\n\nInstall these R packages if not present:\n- meta\n- metafor\n- stringr\n- grid\n\nPrompt the user to run:\n```r\ninstall.packages(c(\"meta\", \"metafor\", \"stringr\", \"grid\"))\n```\n","use_cases":["Perform leave-one-out sensitivity analysis on binary outcome meta-analysis data.","Generate a forest plot and data table to assess the influence of individual studies on pooled effect estimates.","Evaluate the robustness of meta-analysis findings by excluding each study in turn."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/meta-sensitivity-plot\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T12:06:51.000000Z","updated_at":"2026-11-24T12:17:13.000000Z","seo_title":"Generate Leave-One-Out Sensitivity Analysis Plots for Meta-Analysis","seo_description":"Generate sensitivity analysis plots for meta-analysis using CSV input. Output includes a forest plot and data table showing pooled effect estimates after excluding each.","seo_keywords":["meta-analysis sensitivity analysis","leave-one-out forest plot","pooled effect estimates","study influence analysis","meta-analysis robustness"]}}