univariate-multivariable-cox-regression

univariate-multivariable-cox-regression is a skill for Claude Code, Codex from aipoch/medical-research-skills. It costs 79 tokens per session (2,767 once invoked), scanned A, original, MIT.

A survival-analysis workflow that estimates how individual and combined clinical variables relate to time-to-event outcomes using Cox regression. It reports hazard ratios, which describe how a variable is associated with the event rate over time.

In plain words
What is it for?
Use it with a clinical survival cohort to run univariate and multivariable Cox models, export hazard-ratio tables, and create forest plots. It is not for ROC, nomogram, or calibration analysis.
Why use it?
It helps distinguish variables associated with prognosis on their own from variables that remain associated after considering others together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --output_dir ./output/ \.

Good fit Use it with a clinical survival cohort to run univariate and multivariable Cox models, export hazard-ratio tables, and create forest plots. It is not for ROC, nomogram, or calibration analysis.

Compare 6 skills from other repositories ↓
About the project

Medical Research Agent Skills is a library of agent instructions for medical and biomedical research, covering evidence analysis, study protocol design, data analysis, and academic writing. Researchers use it to guide compatible coding agents through common scientific workflows. The catalogue contains many of the library's skills and commands.

aipoch/medical-research-skills · 1,860 stars · on GitHub · aipoch.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aipoch/medical-research-skills
agentmods
npx agentmods add skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for univariate-multivariable-cox-regression

README.md
[![agentmods](https://agentmods.dev/badge/skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression/github.svg)](https://agentmods.dev/skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression)
Your own site
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for univariate-multivariable-cox-regression

Your own site · 80×15
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/univariate-multivariable-cox-regression.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,767 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.02767
Opus 5 $0.00039 $0.01384
Sonnet 5 $0.00016 $0.00553
Haiku 4.5 $0.00008 $0.00277

Measured 9d ago against content hash 58e3c73692b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

univariate-multivariable-cox-regression scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (tests/run_smoke_test.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

awesome-med-research-skills/Data Analysis/univariate-multivariable-cox-regression/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Univariate and Multivariable Cox Regression

When to Use

Use this skill when you need to:

  • run univariate and multivariable Cox regression on a clinical survival cohort;
  • identify prognostic clinical variables associated with time-to-event outcomes;
  • export hazard-ratio tables and then render forest plots from those results.

Typical user requests:

  • "Run single-factor and multi-factor Cox regression on this survival dataset."
  • "Find prognostic variables from my clinical cohort and give me forest plots."
  • "Use futime and fustat to do Cox regression for age, stage, and risk."

When Not to Use

Do not use this skill for:

  • nomogram construction or calibration analysis;
  • time-dependent ROC analysis or external prognostic model validation;
  • feature discovery pipelines beyond the built-in univariate screening rule;
  • non-survival outcomes such as binary diagnosis or differential expression.

When to Read External Files

Situation File to Read Purpose
Need algorithm details references/algorithm.md Statistical workflow, assumptions, and feature-selection rule
Need to run analysis scripts/main.R Execute Rscript scripts/main.R <command> [options]
Encounter errors references/troubleshooting.md Common SKILL_* errors and fixes
Need CLI examples references/cli-guide.md Command-specific argument examples
Need test data tests/data/ Minimal runnable cohort for smoke testing

Usage

1. Run Cox Analysis

Rscript scripts/main.R analyze \
  --data_file ./clinical_data.csv \
  --features age,gender,stage,risk \
  --time_col futime \
  --event_col fustat \
  --output_dir ./output/ \
  --seed 42

2. Generate Univariate Forest Plot

Rscript scripts/main.R forest-plot \
  --data_file ./output/table/prognosis_uni_cox_results.xlsx \
  --plot_save ./output/plot/uni_forest_plot.pdf

3. Generate Multivariable Forest Plot

Read the full file on GitHub · 328 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 328 lines · 79 tokens per session scan A 58e3c73692b2

Subscribe to this mod's changes

univariate-multivariable-cox-regression is a skill published in the GitHub repository aipoch/medical-research-skills (1,860 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 2,767 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories