Format P-Value with Standardized Precision
describe_p_value.Rd
This function formats a p-value to a standardized number of significant
digits. If the p-value is smaller than the threshold (10^(-sig_digits)), it is
returned as "<0.001" (or another appropriate threshold based on sig_digits
),
otherwise, it is rounded to the specified number of significant digits.
Details
The function takes a p-value and checks if it is smaller than a certain
threshold determined by the sig_digits
parameter. If the p-value is smaller than
this threshold, it returns a string indicating that the value is smaller than
the threshold. Otherwise, the p-value is returned rounded to the specified
number of significant digits.