-
Notifications
You must be signed in to change notification settings - Fork 166
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
Differences between plot.cox.zph and ggcoxzph #534
Comments
Hi, Please note that despite changes in the plot, the p-values are the same and it is much safer to do the inference based on p-values, |
@pbiecek Wow, thank you for a so quick reaction! But this difference got my attention, because I started worrying that something I don't understand is happening under the hood. And since my work will be likely validated by the stat. reviewer, I wouldn't be able to explain this. Now I can close also the issue on in the survival's page. BTW, will this affect also the shape of the intervals? Because here all 3 are identical. And in the plot.cox.zph they all differ. Maybe you use the same SD for all variables?A side note. Errors happen everywhere (including commercial packages), it's not unusual. But, when we catch it, it would be good to inform people about that, so they can update their papers. The "NEWS" file is "hidden" to many people (I observed many don't even know it exists). So maybe you could add a section to the web page (maybe there? https://rpkgs.datanovia.com/survminer/index.html) with "hot changes" or "breaking changes"? You know, when it's about simple issues, like wrongly aligned label, or legend disappearing, it can be annoying, but not "breaking". But when something essential is corrected, like the Gehan-Breslow p-value, that was fixed recently in SurvMiner, people would be happy to be informed somehow there's a need to re-run their calculations. This issue isn't any serious IMO, but I'm talking about the possible future ones. Anyway, thank you again! |
Hey @kassambara any way this can be merged? |
fixed by #535 |
Dear @kassambara, @pbiecek and the rest of the SurvMiner Team.
Today I found an issue while plotting the results of the cox.zph using the function from the survival and survminer package. I get different results, attached below. Which one is correct?
I am preparing for writing a paper and I cannot risk. That's why I report the inconsistency. Both survival and survminer packages are very popular and I believe many people base their scientific work on them.
The fit:
The test of PH:
Let's print it:
As we can notice - most of the points lie outside the dashed range.
Now, let's plot it using the survminer package:
And now all the points lie inside the intervals. The intervals look identical and span the same (visually) range.
So one routine has to be wrong. Or both are correct, but different setting/option is in use. Or maybe I am missing something trivial.
This is the survival repository: https://github.com/therneau/survival/tree/master/R
I reported this issue also on the survival's github.
The text was updated successfully, but these errors were encountered: