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

report_participants() to verbose? #66

Closed
strengejacke opened this issue Feb 14, 2020 · 2 comments
Closed

report_participants() to verbose? #66

strengejacke opened this issue Feb 14, 2020 · 2 comments
Labels
enhancement 💥 Implemented features can be improved or revised required for CRAN 🚧 This needs to be fixed before initial submission

Comments

@strengejacke
Copy link
Member

strengejacke commented Feb 14, 2020

library(report)
data <- data.frame(
  "Age" = c(22, 23, 54, 21, 8, 42),
  "Sex" = c("F", "F", "M", "M", "M", "F")
)

report_participants(data)
#> [1] "6 participants (Mean age = 28.33, Mean = 28.33, SD = 16.62, Median = 22.50, MAD = 11.86, range: [8, 54], Skewness = 0.67, Kurtosis = -0.97; 50.00% females)"

Created on 2020-02-14 by the reprex package (v0.3.0)

  1. Mean is mentioned twice.
  2. I think, if median is already reported, we don't need MAD for "age". mean/sd is enough, maybe also median, but not mad.
  3. Range is OK, but I never ever saw any paper where kurtosis and skewness of age was shown, at least not for a descriptive statistic.
@DominiqueMakowski
Copy link
Member

Clearly too verbose, related I think to the fact that the default output from report.data.frame changed

@strengejacke strengejacke added the enhancement 💥 Implemented features can be improved or revised label Mar 19, 2020
@strengejacke strengejacke added the required for CRAN 🚧 This needs to be fixed before initial submission label Sep 17, 2020
@strengejacke
Copy link
Member Author

I just saw this issue is resolved...

library(report)
data <- data.frame(
  "Age" = c(22, 23, 54, 21, 8, 42),
  "Sex" = c("F", "F", "M", "M", "M", "F")
)

report_participants(data)
#> [1] "6 participants (Mean age = 28.33, SD = 16.62, range = [8, 54]; 50.00% females)"

Created on 2020-09-18 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💥 Implemented features can be improved or revised required for CRAN 🚧 This needs to be fixed before initial submission
Projects
None yet
Development

No branches or pull requests

2 participants