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

Log-rank tests for trend #188

Closed
MarcinKosinski opened this issue Apr 7, 2017 · 5 comments
Closed

Log-rank tests for trend #188

MarcinKosinski opened this issue Apr 7, 2017 · 5 comments

Comments

@MarcinKosinski
Copy link
Contributor

Due to the email

Dear Marcin and Alboukadel,

I am a cancer researcher working on biomarkers and is currently eager to take advantage of R to perform more advanced and effective survival analyses. I was recently thrilled to discover the survminer package which I think is excellent; great work. I have one specific question regarding how to perform log rank test for trend? This is important to my research since biomarker data are often ordinal. I am a novice in R, and is unfortunately not able to find any R documentation for how to perform logrank test for trend in the survminer package, although I found an issue where the both of you touched upon it (“Other tests than log-rank for testing survival curves and Log-rank test for trend #17”), but was not able to find out whether the issue was solved or not. I would be sincerely grateful if you could suggest a solution to this since I really would like to start using this package for all my future survival analyses.

I am creating an issue for that (even though we had a long time ago an issue for that - #17).

@kassambara
Copy link
Owner

We can add the argument test.for.trend = FALSE/TRUE in surv_pvalue() function used by ggsurvplot() to compute survival pvalues. I can d this

@kassambara
Copy link
Owner

I can do this if you're not working on it...

@MarcinKosinski
Copy link
Contributor Author

Please feel free to work on that, I am having to much R recently.

kassambara added a commit that referenced this issue May 2, 2017
@kassambara
Copy link
Owner

New option test.for.trend added in ggsurvplot() to perform a log-rank test for trend. logical value. Default is FALSE. If TRUE, returns the test for trend p-values.

@MarcinKosinski
Copy link
Contributor Author

Thank you! Good job

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