Overview
- Skill Key
- aipoch-ai/survival-analysis-km
- Author
- AIPOCH
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/aipoch-ai/survival-analysis-km
- Latest Commit SHA
- 3423325ff6e4cec6aa7bd6dfd6991fc459a038fd
Generates Kaplan-Meier survival curves, calculates survival statistics (log-rank test, median survival time), and estimates hazard ratios for clinical and biological survival data analysis. Triggered when user requests survival analysis, Kaplan-Meier plots, time-to-event analysis, or asks about survival statistics in biomedical contexts.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 survival-analysis-km 技能。 若已安装,则直接安装 survival-analysis-km 技能。
# Survival Analysis (Kaplan-Meier) Kaplan-Meier survival analysis tool for clinical and biological research. Generates publication-ready survival curves with statistical tests. ## Features - **Kaplan-Meier Curve Generation**: Publication-quality survival plots with confidence intervals - **Statistical Tests**: Log-rank test, Wilcoxon test, Peto-Peto test - **Hazard Ratios**: Cox proportional hazards regression with 95% CI - **Summary Statistics**: Median survival time, restricted mean survival time (RMST) - **Multi-group Analysis**: Supports 2+ comparison groups - **Risk Tables**: Optional at-risk table below curves ## Usage ### Python Script ```bash python scripts/main.py --input data.csv --time time_col --event event_col --group group_col --output results/ ``` ### Arguments | Argument | Description | Required | |----------|-------------|----------| | `--input` | Input CSV file path | Yes | | `--time` | Column name for survival time | Yes | | `--event` | Column name for event indicator (1=event, 0=censored) | Yes | | `--group` | Column name for grouping variable | Optional | | `--output` | Output directory for results | Yes | | `--conf-level` | Confidence level (default: 0.95) | Optional | | `--risk-table` | Include risk table in plot | Optional | ### Input Format CSV with columns: - **Time column**: Numeric, time to event or censoring - **Event column**: Binary (1 = event occurred, 0 = censored/right-censored) - **Group column**: Categorical variable for stratification Example: ```csv patient_id,time_months,death,treatment_group P001,24.5,1,Drug_A P002,36.2,0,Drug_A P003,18.7,1,Placebo ``` ### Output Files - `km_curve.png`: Kaplan-Meier survival curve - `km_curve.pdf`: Vector version for publications - `survival_stats.csv`: Statistical summary (median survival, confidence intervals) - `hazard_ratios.csv`: Cox regression results with HR and 95% CI - `logrank_test.csv**: Pairwise comparison p-values - `report.txt**: Human-readable summary report ## Tec...
edholofy
University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning required.
lethehades
macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance
capt-marbles
Web scraping and crawling with Firecrawl API. Fetch webpage content as markdown, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs to scrape a URL, get current web info, capture a screenshot, extract specific data from pages, or crawl docs for a framework/library.
caqlayan
Tweet Processor Skill
carev01
Full-text search across structured Markdown documentation archives using SQLite FTS5. Use when you need to search large collections of Markdown articles that are separated by "---" delimiters and contain source URLs (marked with "*Source:" pattern). Provides fast BM25-ranked search with automatic source URL extraction for citations. Ideal for research, documentation lookups, and knowledge base exploration. Requires indexing documentation first with `docs.py index`.
camelsprout
DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV/Parquet/JSON analysis, database queries, or data conversion. Triggers on "duckdb", "sql", "query", "data analysis", "parquet", "convert data".