Skip to main content
ClaudeWave
EN, English
Skill1k repo starsupdated 12d ago

biostatistics

The biostatistics skill performs advanced statistical analyses for clinical and biomedical research, including survival analysis, Kaplan-Meier estimation, Cox proportional hazards regression, longitudinal data modeling, and diagnostic test evaluation. Use this skill when analyzing time-to-event outcomes, comparing survival curves between groups, assessing diagnostic accuracy metrics, handling competing risks, or managing missing data in clinical studies.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/beita6969/ScienceClaw /tmp/biostatistics && cp -r /tmp/biostatistics/skills/biostatistics ~/.claude/skills/biostatistics
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

## When to Trigger

Activate this skill when the user mentions:
- Survival analysis, time-to-event, censoring
- Kaplan-Meier curves, log-rank test, median survival
- Cox regression, proportional hazards, hazard ratio
- Longitudinal data, mixed-effects models, GEE
- Diagnostic accuracy, sensitivity, specificity, ROC/AUC
- Competing risks, Fine-Gray model, cumulative incidence
- Sample size for clinical endpoints, multiplicity adjustment
- Missing data in clinical studies, multiple imputation, MCAR/MAR/MNAR

## Step-by-Step Methodology

1. **Study design assessment** - Confirm study type (cohort, case-control, cross-sectional, RCT). Identify primary endpoint type (continuous, binary, time-to-event, count, ordinal). Determine if data is clustered or longitudinal.
2. **Survival analysis** - Define time origin, event definition, and censoring mechanism. Verify censoring is non-informative. Estimate survival curves with Kaplan-Meier method. Compare groups with log-rank test (or weighted variants: Wilcoxon, Tarone-Ware for non-proportional hazards).
3. **Cox regression** - Check proportional hazards assumption (Schoenfeld residuals, log-log plots). If violated, use time-varying coefficients, stratified Cox, or restricted mean survival time (RMST). Report hazard ratios with 95% CIs. Handle multiple covariates with purposeful selection or penalized regression.
4. **Competing risks** - When multiple event types exist, use cumulative incidence functions (not 1-KM). Apply Fine-Gray subdistribution hazard model or cause-specific hazard models. Report cumulative incidence at clinically relevant timepoints.
5. **Longitudinal analysis** - For repeated measures: linear or generalized mixed-effects models (random intercepts/slopes). Choose appropriate correlation structure. Handle dropout with pattern mixture models or joint models for longitudinal and survival data.
6. **Diagnostic test evaluation** - Compute sensitivity, specificity, PPV, NPV at defined cutoffs. Generate ROC curve and compute AUC with DeLong confidence intervals. For biomarker discovery, apply cross-validation to avoid overoptimism.
7. **Missing data handling** - Classify missingness mechanism (MCAR, MAR, MNAR). For MAR: multiple imputation (m >= 20 imputations, Rubin's rules for pooling). Conduct sensitivity analysis under MNAR assumptions.

## Key Databases and Tools

- **R survival / survminer** - Survival analysis packages
- **SAS PROC PHREG / LIFETEST** - Clinical biostatistics standard
- **STATA stcox / stcurve** - Survival modeling
- **R mice / Amelia** - Multiple imputation
- **pROC / cutpointr** - ROC analysis

## Output Format

- Kaplan-Meier curves with number-at-risk table, median survival with 95% CI.
- Cox model results as a table: variable, HR, 95% CI, p-value, with PH assumption test.
- Cumulative incidence curves for competing risks with event-specific estimates.
- ROC curves with AUC, optimal cutpoint, and sensitivity/specificity at that point.
- Missing data report: pattern, mechanism assessment, imputation method, sensitivity results.

## Quality Checklist

- [ ] Time origin and event definition clearly specified
- [ ] Censoring mechanism described and non-informative assumption justified
- [ ] Proportional hazards assumption tested and result reported
- [ ] Competing risks handled appropriately (not ignored)
- [ ] Multiple comparisons adjustment applied when needed
- [ ] Missing data mechanism assessed and appropriate method used
- [ ] Sample size adequate for number of covariates (EPV >= 10 for Cox)
- [ ] Effect estimates reported with confidence intervals, not just p-values
- [ ] Sensitivity analyses performed for key assumptions
1passwordSkill

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

academic-deep-researchSkill

Transparent, rigorous research with full methodology — not a black-box API wrapper. Conducts exhaustive investigation through mandated 2-cycle research per theme, APA 7th citations, evidence hierarchy, and 3 user checkpoints. Self-contained using native OpenClaw tools (web_search, web_fetch, sessions_spawn). Use for literature reviews, competitive intelligence, or any research requiring academic rigor and reproducibility.

academic-literature-searchSkill

# Academic Literature Search — 学术文献检索与引用管理

acp-routerSkill

Route plain-language requests for Pi, Claude Code, Codex, OpenCode, Gemini CLI, or ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation.

apple-notesSkill

Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.

apple-remindersSkill

Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.

article-writingSkill

Write articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied examples or brand guidance. Use when the user wants polished written content longer than a paragraph, especially when voice consistency, structure, and credibility matter.

arxiv-databaseSkill

Search and retrieve preprints from arXiv via the Atom API. Use this skill when searching for papers in physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering, or economics by keywords, authors, arXiv IDs, date ranges, or categories.