Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature requiest]: Make different default rounding for different groups of statistics #95

Open
GegznaV opened this issue Oct 7, 2019 · 1 comment

Comments

@GegznaV
Copy link

GegznaV commented Oct 7, 2019

In function descr(), the statistics can be divided into 5 types according to units of measurement and scales:

  1. Mean, Std.Dev, Min, Q1, Median, Q3, Max, MAD, IQR are measured on the same scale as an input variable (rounding could be provided for each variable separately);
  2. CV has relative units of measurement and its scale depends on the values of mean and SD;
  3. Skewness, SE.Skewness, and Kurtosis are coefficients, centered around 0. So 2 decimal places are usually sufficient.
  4. N.Valid is always an integer. No decimal places should be displayed.
  5. Pct.Valid is measured on the scale of percentages so 0 to 2 decimal places are usually sufficient.

Could these groups of measures have different default rounding options?

@dcomtois
Copy link
Owner

For the ascii tables displayed in the console, this currently is not possible, as the number of digits shown depends on a pander argument that applies to the table as a whole. For html results, the N.Valid value is already shown without decimals (unless sampling weights are used). Specifying variable-specific rounding is feasible, although would require some work. I have a pretty busy schedule so I can't promise anything... But I'll leave the issue open and if you or others want to work on this feature, by all means do so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants