harrelfe / Hmisc

Harrell Miscellaneous
Other
205 stars 81 forks source link

Option to print equality sign in format.pval #126

Open tamas-ferenci opened 4 years ago

tamas-ferenci commented 4 years ago

The format.pval prints a < sign if the p-value is small. However, it does not print an = sign if an exact value is returned. That poses a problem if format.pval is used in a markdown document: one can either write `r format.pval(...)` but this will not work if the p-value turns out to be exact, or `r = format.pval(...)` but it will only work with exact value.

An option in format.pval to show = with exact p-values would resolve this problem (and, if it is an option, it would be completely backwards-compatible).