kassambara / survminer

Survival Analysis and Visualization
https://rpkgs.datanovia.com/survminer/
509 stars 164 forks source link

Log Likelihood Ratio P-value incorrectly named as log-rank? #640

Open arichards2564 opened 10 months ago

arichards2564 commented 10 months ago

I believe that p.value.log is actually referring to the log of the likelihood ratio test, whereas the p.value.sc is referring to the score log-rank test. According to this: https://rdrr.io/cran/survival/src/R/summary.coxph.R the log LRT is stored in logtest while the log-rank is in sctest. Then when it goes through broom::glance, these are logged as p.value.log and p.value.sc respectively (https://github.com/tidymodels/broom/blob/main/R/survival-coxph-tidiers.R#L153-L155)

https://github.com/kassambara/survminer/blob/64de6746a7ee9cd758dc8d14ca88c8383e6851a6/R/ggforest.R#L172C21-L172C40