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

Feature request: Implementing other tests for p-value #217

Open
spiralparagon opened this issue Jun 15, 2024 · 1 comment
Open

Feature request: Implementing other tests for p-value #217

spiralparagon opened this issue Jun 15, 2024 · 1 comment

Comments

@spiralparagon
Copy link

spiralparagon commented Jun 15, 2024

I'm curious if other tests such as weighted log-rank, generalized Wilcoxon, Peto-Peto m.m. can be implemented in the add_p function similar to ggsurvplot.
A reference for example: https://rpkgs.datanovia.com/survminer/articles/Specifiying_weights_in_log-rank_comparisons.html

Or is this already implemented and I've failed to locate the help texts? :)

All the best,

@ddsjoberg
Copy link
Collaborator

We have little wrappers for p-values calculated with survival::survdiff() via add_p(), which includes some of the tests you list above.

The real beauty of this pkg, however, is that is integrates with fully with ggplot, so you don't need the package to implement anything for you. You can just calculate a p-value and add it as a caption or place it in the plot, or put it wherever, using the ggplot functions. Here are some examples placing p-values on the figure: https://www.danieldsjoberg.com/ggsurvfit/reference/survfit2_p.html

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