Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the prediction results and KM curve drawing #4

Open
zhoujiahui2001 opened this issue Nov 1, 2024 · 3 comments
Open

About the prediction results and KM curve drawing #4

zhoujiahui2001 opened this issue Nov 1, 2024 · 3 comments

Comments

@zhoujiahui2001
Copy link

您好,我运行了您的代码,获得的预测结果有两列,其中有一列有正有负,这里预测的结果具体是什么(风险值,还是生存时间)?我该怎么根据这个绘制KM曲线?Hello, I ran your code and got two columns of prediction results, one of which is positive and negative, what exactly is the predicted result here (value at risk, or survival time)? How do I plot a KM curve based on this?

@liupei101
Copy link
Owner

您好,

那个预测结果是Cox比例风险模型中的风险比例。关于这个值的意义,您可以参考 这个文档:here

关于KM曲线的绘制,您需要先计算人群的基础生存函数S0(t),然后根据风险比例HR,经过进一步计算得到个体的生存函数预测S(t)=S0(t) ** HR,然后才能绘制KM曲线。具体计算过程,您可以参考:here

@zhoujiahui2001
Copy link
Author

非常感谢您的回复,我先去学习一段时间,如果还有不会的,可能还需要再问问您。

@zhoujiahui2001
Copy link
Author

您好,我还是有一点问题想请教您,①风险比例应当是只有正数的吗?如果我的理解没有错误的话。但是我预测的风险比例预测结果有负数,这正常吗?还是说预测的结果实际上是风险值。②还有文中的根据风险分层,是根据风险比例分层还是风险值呢,我感觉像是风险值,具体是绝对值还是带有负数的值呢?③如果是风险值是不是也需要根据风险基线函数和计算获得风险值,但是不同的t会有不同的风险值,具体要根据哪一个风险值呢?④我绘制的km曲线非常奇怪,低风险是一条直线,可能是哪里理解有问题,希望您能帮助我,非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants