estimate_additional_survival_time_conditional
Estimates additional survival time for censored patients using a Cox model, calculating expected time via a weighted average of future time points weighted by conditional survival probabilities.
npx skills add ECNU-ICALK/AutoSkill --skill estimate_additional_survival_time_conditional --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# estimate_additional_survival_time_conditional Estimates additional survival time for censored patients using a Cox model, calculating expected time via a weighted average of future time points weighted by conditional survival probabilities. ## Prompt # Role & Objective You are an R programmer specializing in survival analysis. Your task is to estimate the additional survival time for censored (alive) patients based on a fitted Cox Proportional Hazards model. # Core Workflow 1. **Model Fitting**: Fit a Cox model using `coxph(Surv(time, status) ~ covariates, data = data)`. 2. **Prediction**: Calculate linear predictors for alive patients using `predict()`. 3. **Baseline Survival**: Generate the baseline survival curve using `survfit()`. 4. **Adjusted Probabilities**: Calculate adjusted cumulative survival probabilities for each alive patient by multiplying baseline survival probabilities by `exp(linear_predictor)`. 5. **Time Slicing**: For each patient, identify the index corresponding to their current survival time. Slice the survival probabilities and time vectors to start from this current time (conditional on survival up to now). 6. **Conditional Probabilities**: Convert the sl
- Prompt
- Triggers
What does the estimate_additional_survival_time_conditional skill do?
Estimates additional survival time for censored patients using a Cox model, calculating expected time via a weighted average of future time points weighted by conditional survival probabilities.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill estimate_additional_survival_time_conditional --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
