GTSummary Table omitting Pvalue for TNM Clinical T

https://rpubs.com/Amajid12/671096

Code used below:
Sm_Figure3 %>%
tbl_summary(
by = Figure.3,
statistic = all_continuous() ~ "{mean} ({sd})",
digits = all_continuous() ~ 2,
missing_text = "(Unknown)"
) %>%
add_p(pvalue_fun = ~style_pvalue(.x, digits = 4)) %>%
add_overall() %>%
add_n() %>%
modify_header(label ~ "Variable") %>%
modify_spanning_header(c("stat_1", "stat_2") ~ "Treatment Groups") %>%
bold_labels()


This is the error that occurs ^^

Not sure why this is omitting the P value, would love to hear some thoughts or work arounds to this

As the error message indicates, there was a problem running fisher.test(). Try calculating the pvalue outside of gtsummary and you'll see the same error message.

Also, I think the largest digits value accepted is 3, so 4 could also be a part of your problem.

:man_dancing:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.