:exclamation: This is a read-only mirror of the CRAN R package repository. tidycmprsk — Competing Risks Estimation. Homepage: https://mskcc-epi-bio.github.io/tidycmprsk/, https://github.com/MSKCC-Epi-Bio/tidycmprsk Report bugs for this package: https://github.com/MSKCC-Epi-Bio/tidycmprsk/issues
2
stars
1
forks
source link
Unexpected outputs using `add_global_p()` with `crr()` #1
Re-posting this issue from {gtsummary} since it was identified as a better fit for {tidycmprsk}.
When using add_global_p() with crr(), I noticed that, in some cases, releveling a 4-level categorical variable (keeping the reference category the same) causes the global p-value to change. More broadly, in these instances, the global p-value appears to consistently match the individual p-value corresponding to the third level for some reason.
I was able to recreate this issue using the tidycmprsk::trial dataset (I had to add some extra variables and used the death variable as a predictor which doesn't make sense, but helped me recreate for some reason). Below, the global p-value for new_categorical changes from >0.9 to 0.2 when the variable is releveled (but keeping A as the reference category).
Hello,
Re-posting this issue from {gtsummary} since it was identified as a better fit for {tidycmprsk}.
When using
add_global_p()
withcrr()
, I noticed that, in some cases, releveling a 4-level categorical variable (keeping the reference category the same) causes the global p-value to change. More broadly, in these instances, the global p-value appears to consistently match the individual p-value corresponding to the third level for some reason.I was able to recreate this issue using the
tidycmprsk::trial
dataset (I had to add some extra variables and used the death variable as a predictor which doesn't make sense, but helped me recreate for some reason). Below, the global p-value fornew_categorical
changes from >0.9 to 0.2 when the variable is releveled (but keepingA
as the reference category).Thank you!
Created on 2023-04-25 with reprex v2.0.2