modelsummary omits negative sign in front of coefficients

Viewed 17

I've searched the modelsummary website and the internet. I also tried library(conflicted) to see if there is a package conflict. Modelsummary seems to omit negative signs in front of coefficients. Instead the coefficients that should be negative are underlined. Please advise.

1 Answers

modelsummary inserts "proper" minus signs (unicode) to display negative numbers. In some locales/languages, this may cause display problems. You can disable this behavior by calling:

options("modelsummary_format_numeric_html" = "plain")

Future versions of modelsummary may use smart detection to do this automatically when necessary. Follow development here:

https://github.com/vincentarelbundock/modelsummary/issues/552

Note that, in general, I discourage users to change their locales for the sole purpose of making unicode inline histograms work (see the user's comment above). Instead, the recommended approach is to call datasummary_skim() or follow the instructions here:

https://vincentarelbundock.github.io/modelsummary/articles/datasummary.html#histograms

Related