neatStats

neatStats: An R package for neat and painless statistical reporting.

https://github.com/gasparl/neatstats

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.8%) to scientific vocabulary

Keywords

bayesfactor confidence-intervals pipeline r statistical-analysis statistics
Last synced: 6 months ago · JSON representation

Repository

neatStats: An R package for neat and painless statistical reporting.

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 17
Topics
bayesfactor confidence-intervals pipeline r statistical-analysis statistics
Created almost 7 years ago · Last pushed 6 months ago
Metadata Files
Readme License

README.md

neatStats

This R package aims to give a most down-to-earth way possible to get clear, comprehensive, reportable stats out of data from simple (psychological) experiments.

One main point is that all functions use data frames with single row per subjects. Not because "it's like that in SPSS", but because that's the clear and logical way, and because all the reshaping/melting/casting/dcasting is a tiresome fuss even for those not new to it, let alone novices, and leads to a lot of totally unnecessary confusion and problems.

Installation in R

To install the stable version from CRAN, just run:

R install.packages("neatStats")

Then load with: library("neatStats")

Alternatively, if you want to install the latest (and potentially unstable) version from this repository:

install.packages("devtools") # if "devtools" package is not yet installed library("devtools") install_github("gasparl/neatstats")

Usage

See the neatStats vignette for an example pipeline for every step from raw data to reportable statistics. For a much more detailed and extended version of the same example, see the neatStats paper at TQMP.

For details about each function, see the manual (or enter help(xy) or ?xy in R for any specific function).

Useful Links

General introduction to R:

  • Comprehensive and yet relatively concise and readable official R documentation (requires time and patience; prior programming knowledge advised): https://cran.r-project.org/doc/manuals/r-release/R-intro.html
  • Succinct "to the point" intro (best for those with prior programming knowledge; the entire site is very useful): https://www.sthda.com/english/wiki/r-basics-quick-and-easy
  • Another short and nice intro: https://cran.r-project.org/doc/contrib/Torfs+Brauer-Short-R-Intro.pdf
  • Verbose, step by step intro: https://www.statmethods.net/r-tutorial/index.html
  • Shortcuts in Rstudio: https://support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts
    • Run current line (or selection): Ctrl+Enter
    • Run from document beginning to current line: Ctrl+Alt+B
    • Run from current line to document end: Ctrl+Alt+E
    • Run code sections: Ctrl+Alt+T (Any comment line which includes at least four trailing dashes (-), equal signs (=), or pound signs (#) automatically creates a code section.)
    • Autoformat ("beautify") code: Ctrl+Shift+A
    • Comment/uncomment (any number of lines): Ctrl+Shift+C
    • Reflow Comment (format to lines with max 80 char): Ctrl+Shift+/

Data visualization:

  • ggplot2: https://datacarpentry.org/R-ecology-lesson/04-visualization-ggplot2.html
  • ggpubr: https://www.sthda.com/english/articles/24-ggpubr-publication-ready-plots/
  • Shiny R (online interactive sites): https://shiny.rstudio.com/tutorial/
  • plotly for making ggplots interactive: https://plotly.com/ggplot2/
  • Principles: https://biostat.mc.vanderbilt.edu/wiki/pub/Main/StatGraphCourse/graphscourse.pdf

Significance tests:

  • General detailed tutorial on statistics (via R), see e.g. chapters 14 and 16 for ANOVA, 15 for linear modelling: https://learningstatisticswithr.com/book/index.html
  • ANOVA assumptions (discussion and basic solution for normality): https://stats.stackexchange.com/questions/485022/
  • Equal variances: https://uc-r.github.io/assumptions_homogeneity
  • Equal variances discussion: https://stats.stackexchange.com/a/185368/237231
  • More ANOVA diagnostics (residuals vs. fitted values): https://arc.lib.montana.edu/book/statistics-with-r-textbook/item/57
  • ANOVA multiple-testing issue: https://daniellakens.blogspot.com/2016/01/error-control-in-exploratory-anovas-how.html
  • Pairwise comparisons (and corrections) in R: https://www.sthda.com/english/wiki/two-way-anova-test-in-r#multiple-pairwise-comparison-between-the-means-of-groups
  • Linear modelling R tutorial (lme4): https://cran.r-project.org/web/packages/lme4/vignettes/lmer.pdf
  • "The perfect t-test": https://github.com/Lakens/perfect-t-test
  • Various robust statistics: https://cran.r-project.org/web/views/Robust.html

Support

  • If you run into an error despite carefully following the documentation, open a new issue or email me.
  • If you have sound reason to believe that some of the presented statistics (or functions) are really not optimal and/or could be improved in some plausible way, email me.

Citation

When you use neatStats in a publication, you can either cite the specific version you used (enter citation("neatStats") in R), or the following paper:

Lukács, G. (2021). neatStats: An R package for a neat pipeline from raw data to reportable statistics in psychological science. The Quantitative Methods for Psychology, 17(1), 7–23. https://doi.org/10.20982/tqmp.17.1.p007

DOI R-CMD-check

Owner

  • Name: Gaspar Lukacs
  • Login: gasparl
  • Kind: user

GitHub Events

Total
  • Push event: 4
Last Year
  • Push event: 4

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 283
  • Total Committers: 2
  • Avg Commits per committer: 141.5
  • Development Distribution Score (DDS): 0.007
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Gaspar l****r@g****m 281
Gaspar Lukacs 3****l 2

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: 2 months
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • teindor (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 386 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 13
  • Total maintainers: 1
cran.r-project.org: neatStats

Neat and Painless Statistical Reporting

  • Versions: 13
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 386 Last month
Rankings
Forks count: 21.9%
Stargazers count: 28.5%
Average: 29.8%
Dependent packages count: 29.8%
Downloads: 33.3%
Dependent repos count: 35.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6.0 depends
  • BayesFactor * imports
  • Exact * imports
  • MBESS * imports
  • bayestestR * imports
  • car * imports
  • data.table * imports
  • ez * imports
  • fBasics * imports
  • ggplot2 * imports
  • ggpubr * imports
  • grDevices * imports
  • graphics * imports
  • logspline * imports
  • pROC * imports
  • stats * imports
  • viridis * imports
  • knitr * suggests
  • rmarkdown * suggests
  • rstudioapi * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v1 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite