-
Notifications
You must be signed in to change notification settings - Fork 49
Add support for pDigits argument for p-value precision #189
Description
First off, thanks for your work on tableone—it's an incredibly helpful package for producing descriptive statistics in clinical research.
Feature request:
It would be great to have a pDigits argument to control the number of decimal places shown for p-values in the summary table.
It also seems that in certain situations, p-values are now truncated, so that a p-value of 0.0116 becomes 0.011 in the output table—this is not an ideal situation in my opinion, as it may misrepresent the true statistical significance.
Why it matters:
In certain statistical reporting scenarios—especially in academic manuscripts—it’s important to display p-values with more granularity. Without a pDigits option, we need to manually check the results afterward, which defeats some of the automation advantages of using tableone.
Proposed solution:
Introduce a pDigits argument to TableOne that controls the formatting of p-values in the output table.