AI for Survival Models

Download Example Dataset

You can download the simulated dataset used in this example and upload it directly into the ClinicalStatAI platform:

⬇ Download simulated_survival_data.csv

You are welcome to upload your own dataset, as long as it adheres to the required input format specified by the platform.

This platform helps you analyze survival data using AI and generate clear, professional insights.

📌 How to Use:

  1. Upload Your CSV File
    - Must contain duration and event columns
    - Additional covariates are optional
  2. Choose a Model
    - Weibull, Log-Normal, Cox Hazard
  3. Click "Upload & Fit Model"
    - The model runs and generates a report using the AI assistant
  4. View Results
    - You’ll see a statistical summary and an AI-written interpretation

📁 File Format Notes:

Below is a comprehensive explanation of your weibull survival model output. Clarifications are made on which aspects are directly supported by the model output and which are not provided.


1. Coefficients (β) – Effect of Covariates on Hazard (or Time to Event)

Interpretation: coefficients indicate the direction and magnitude of covariate effects on the scale parameter, relating to survival time in Weibull models. Smaller or negative coefficients imply longer expected survival (lower hazard), larger or positive coefficients imply shorter survival (higher hazard).

2. Hazard Ratios (HR) – Exponentiated Coefficients (HR = eβ)

Interpretation: no covariates show strong evidence of increasing or decreasing hazard substantially, as HRs are close to 1.

3. P-values – Statistical Significance of Covariate Effects

Interpretation: no statistically significant evidence that any covariates affect survival time in this model.

4. Confidence Intervals (95%) – For Coefficients and Hazard Ratios

This confirms the lack of significant effect; intervals cross the null value of 1.

5. Survival Function S(t) – Probability of Surviving Beyond Time t

The survival function curve is visualized below. Numerical values are not reported here.

Survival Function Curve

Survival function curve plot

6. Hazard Function h(t) – Instantaneous Risk of Event at Time t

The hazard function curve is visualized below, showing the hazard change over time per the Weibull model.

Hazard Function Curve

Hazard function curve plot

7. Cumulative Hazard Function h(t)

No direct output or plot for cumulative hazard is provided. It can usually be derived from the hazard or survival functions.

8. Shape Parameter – Governs Hazard Behavior Over Time

The hazard rate increases over time in this cohort.

9. Scale Parameter – Affects Timing/Spread of Survival Distribution

Related to lambda_, determined by intercept and covariates. The intercept is significant and large, setting baseline survival time scale. Covariates have small, non-significant effects on scale.

10. Log-Likelihood – Measure of Model Fit

11. AIC / BIC – Model Selection Criteria

12. Residuals – Diagnose Model Fit and Assumptions

No residuals (Cox-Snell, Martingale, Schoenfeld, Deviance) reported. Mean deviance residuals are "not available".

13. Concordance Index (C-index)

C-index = 0.538 on test data.
Values close to 0.5 indicate random prediction; 0.538 is only slightly better, suggesting poor predictive accuracy.

14. Proportional Hazards Assumption

Weibull is a parametric model with implicit PH assumption.
No PH tests (e.g., Schoenfeld residuals) reported here.

15. Linearity of Continuous Covariates

Not assessed or reported in this output.

16. Time-Dependent Effects

No time-dependent covariates or tests reported.

17. Median and Mean Survival Time

18. Restricted Mean Survival Time (RMST)

Not reported.

19. Cumulative Incidence Function (CIF)

Not applicable or reported; no competing risks model here.

20. Cause-Specific and Subdistribution Hazard Ratios

Not applicable or reported.

21. Posterior Distributions of Parameters

Not Bayesian; not reported.

22. Credible Intervals

Not Bayesian; only frequentist confidence intervals reported.


Summary

Suggested Diagnostic Checks

Using This Weibull Model for Prediction on New Data

To predict survival probabilities or hazard rates for new subjects:

  1. Obtain the covariate values (age, bmi, height, weight) for the new data point.
  2. Compute the linear predictor: LP = β₀ + β₁×age + β₂×bmi + β₃×height + β₄×weight.
  3. Calculate the scale parameter λ from the linear predictor (e.g., λ = exp(LP) or as model specifies).
  4. Use the shape parameter ρ (≈ 2.22) to define the Weibull distribution hazard function h(t) = ρ λ t^{ρ-1} and survival function S(t) = exp(-λ t^{ρ}).
  5. Compute predicted survival probabilities at time points of interest using S(t).
  6. Similarly, compute hazard or cumulative hazard as needed.

Note: Given the weak predictive power and non-significant covariates, predictions should be used cautiously and with awareness of the model limitations.

If you want help interpreting the graphs or require further model refinement, feel free to ask!