Survival Analysis

🌐Community
by aj-geddes · vlatest · Repository

Predicts time until events occur based on data, enabling proactive risk mitigation and optimized resource allocation.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add survival-analysis npx -- -y @trustedskills/survival-analysis
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "survival-analysis": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/survival-analysis"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to perform survival analysis, a statistical method used to analyze the expected duration of time until one or more events happen, such as patient death or machine failure. It specifically handles censored data where the event of interest has not yet occurred for some subjects within the observation period.

When to use it

  • Analyzing time-to-event data in clinical trials where patient follow-up periods vary.
  • Predicting equipment maintenance schedules based on historical failure logs with incomplete records.
  • Evaluating customer churn risks when exit dates are unknown for active accounts.
  • Assessing reliability engineering metrics for systems under continuous monitoring.

Key capabilities

  • Processing right-censored, left-censored, and interval-censored datasets.
  • Calculating Kaplan-Meier survival curves to estimate survival probabilities over time.
  • Performing Cox proportional hazards regression to identify factors influencing event occurrence.
  • Generating hazard rate plots to visualize risk changes throughout the observation window.

Example prompts

"Analyze this dataset of server crash times, treating servers still running at the end of the month as censored data." "Calculate the median survival time and generate a Kaplan-Meier curve for patients in Group A versus Group B." "Run a Cox regression to determine which variables significantly increase the hazard rate of customer churn in this log."

Tips & gotchas

Ensure your dataset explicitly marks observations as 'event occurred' or 'censored' before analysis begins. Standard mean calculations will yield incorrect results if censored data is not handled specifically by survival functions.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
aj-geddes
Installs
83

🌐 Community

Passed automated security scans.