Prelaunch preview. Explore AROS products and skills. Checkout is in sandbox; no real payment.
← CohortDAG documentation

Run a survival analysis: Kaplan-Meier and Cox

How-to · CohortDAG 0.2.9

Load the starter pipeline

Click Pipelines and, under Starters, load Survival Analysis Starter. It runs on sample data that ships with CohortDAG. Close the results panel and click Arrange Graph.

Load the starter pipeline

Run the pipeline

Click Run All Outputs. CohortDAG compiles the pipeline and runs it on Apache Spark. When the run finishes, close the results panel.

Run the pipeline

Read the Kaplan-Meier curves

Select the Kaplan-Meier Survival node and open the Workspace tab. The curves compare three treatment groups, with the number at risk below. Median survival is 18.9 months in the control group and 43.1 months with intensive treatment.

Read the Kaplan-Meier curves

Read the hazard ratios

Back in the Workflow tab, select the Cox Regression node and open the Workspace tab again. The forest plot shows the hazard ratio of each covariate. For age it is 0.998, and its confidence interval includes 1.

Read the hazard ratios