gpt4 book ai didi

javascript - 在 D3 中绘制 Kaplan Meier 曲线

转载 作者:行者123 更新时间:2023-11-28 06:43:56 25 4
gpt4 key购买 nike

有在D3中绘制Kaplan Meier曲线的示例吗?我的数据集也包含审查信息。我对如何使用 d3 绘制它感到困惑。我的数据位于 csv 文件中。

最佳答案

请参阅Nick Strayer's Block一个很好的 KM 生存曲线示例:

enter image description here

Each bar in the top chart represents an individual's time of entry and exit from a study. The color of the bar indicates which type of exit they had. The bottom chart is a Kaplan-Meier survival curve representing the "survival" of individuals at a given time point. E.g. If the K-M curve = 0.7 at a time of 6 years then 70% of individuals have yet to have the event of study at that time (have survived).

Drag the grey bar across the x-axis to regenerate the K-M curve for the individuals who entered the study past the filter point.

The fact that the survival curve drops to 0 almost immediately when considering all the data illustrates a pitfall of non-parametric methods for generating a survival curve when you have left truncated data. By filtering the data that the curve is generated with, we are generating a conditional survival curve, or he survival curve for an individual given that they have survived to time t.

关于javascript - 在 D3 中绘制 Kaplan Meier 曲线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33557532/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com