Replies: 1 comment
-
At PS1: there are different types to compute the kurtosis out skewness (https://easystats.github.io/datawizard/reference/skewness.html) At PS2: I just found the function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In psychology, we frequently have to produce descriptive statistics by group. The
psych
package allows this.datawizard
also has a nice function to produce descriptive statistics:However it does not support groups directly (there are no group arguments). Fortunately,
datawizard
, like any respectable magician, has a trick or two hiding in a hat (or behind someone’s ear):datawizard::data_group
. Legends say thatThis function is comparable to dplyr::group_by()
. This is great news, because it would then seem just like the right tool to satisfy our appetite for adventure and mysticism. Because we don’t really want to rely on the muggledplyr
, do we? Given this is a scientific enterprise, after all, let’s empirically verify the claims of tales passed down through generations.WOW! Wonderful! A breathtaking trick worthy even of Max Maven’s most powerful illusions. Of course, even the most learned warlock can still improve some aspects of their craft. Possible additional improvements, for example, would be to add info from
psych:describeBy
that is missing fromdatawizard::describe_distribution
:centrality = "all"
argument 😱🙊🤯)describe_distribution
#160)One might also wonder whether these features should stay within the
psych
package proper, which is a reasonable possibility. After all, it is a package made for psychologists. But givendatawizard
has a function so similar available already, it is worth considering, if only so researchers and sorcerers alike may rely on one fewer dependency within our magical scripts and grimoires.PS: Note that the skewness and kurtosis values differ slightly between the two packages, and though I know it not, there is probably a reason for this.
PS2: I have gone through many iterations of this post before realizing that
datawizard
, in fact, does address all of my needs. Realizing that my feature requests were now unnecessary, I have turned this issue into a discussion instead. Perhaps it would be nice to add thegroup_by
to the readme and vignettes for more visibility (I mean, combined withdescribe_distribution
, specifically).Created on 2022-09-03 by the reprex package (v2.0.1)
Beta Was this translation helpful? Give feedback.
All reactions