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

Add more summary statistics measures from {sjstats} #232

Open
IndrajeetPatil opened this issue Aug 24, 2022 · 2 comments
Open

Add more summary statistics measures from {sjstats} #232

IndrajeetPatil opened this issue Aug 24, 2022 · 2 comments

Comments

@IndrajeetPatil
Copy link
Member

Maybe also some of the summary statistics from sjstats can be implemented in datawizard?

Originally posted by @strengejacke in #12 (comment)

@bwiernik
Copy link
Contributor

My preference would be to implement a set of descriptive functions with general names (e.g., distribution_mean, distribution_sd, distribution_mad, distribution_cv) that consistently support a common set of useful arguments:

  1. weights
  2. trim
  3. method (e.g., to compute maximum likelihood, unbiased, or robust versions of a stat).

and perhaps other arguments.

Small point: I really hate how "standard error" is commonly used to refer specifically to the SE of the mean, so if we added something like that, I would prefer it be something like distribution_sem() or distribution_se_mean().

IndrajeetPatil added a commit that referenced this issue Sep 15, 2022
* Add coefficient of variation function

Related to #232, easystats/performance#433

* Remove suggestion that `coef_var()` can be used with models.

Will implement that as `performance_coefvar()` or similar

* code-style, use namespace

* typo in doc

* minor

* Fix logic

* Move mode and CV to descriptives.R

* Bugfix in switch()

* bug fixes and add tests

* Move processing to internal functions for reuse

* Fix documentation

* remove CV alias

* Include more digits in text expected values

* check and explain why x must be ratio scaled

* fix

* Update R/descriptives.R

Co-authored-by: Indrajeet Patil <[email protected]>

* backticks

* msg

* typo

Co-authored-by: Daniel <[email protected]>
Co-authored-by: Etienne Bacher <[email protected]>
Co-authored-by: Indrajeet Patil <[email protected]>
Co-authored-by: Mattan S. Ben-Shachar <[email protected]>
Co-authored-by: Mattan S. Ben-Shachar <[email protected]>
@etiennebacher
Copy link
Member

Where are we with this? Currently, the "Data properties" section contains these functions:

image

It would be useful to have a clear list of functions to add or import from other packages.

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

3 participants