Learn R Programming

⚠️There's a newer version (1.13.3) of this package.Take me there.

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:

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 EXAMPLE.md 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:

Data visualization:

Significance tests:

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

Copy Link

Version

Install

install.packages('neatStats')

Monthly Downloads

287

Version

1.8.1

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

G<c3><a1>sp<c3><a1>r Luk<c3><a1>cs

Last Published

November 7th, 2021

Functions in neatStats (1.8.1)

excl_neat

Exclusion
mon_conv

Monitor Screen Unit Conversion
dems_neat

Demographics
mon_neat

Monitor Object
anova_neat

Comparison of Multiple Means: ANOVA
corr_neat

Correlation Statistics
ci_from_p

CI from p value
aggr_neat

Aggregation, descriptives
mean_ci

Confidence Interval of Mean
enum

Enumerate
ro

Neat rounding
read_dir

Read and Merge Files from Directory
rbind_loop

Merge by Columns in Loops
t_neat

Difference of Two Means and Area Under the Curve
norm_tests

Normality Tests and Plots
se

Standard Error of Mean
sd_ci

Confidence Interval of Standard Deviation
neatStats-package

neatStats: an R Package for Neat and Painless Statistical Reporting
plot_neat

Plots of Means and of Dispersion
table_neat

Table, descriptives
roc_neat

Difference of Two Areas Under the Curves
props_neat

Difference of Two Proportions
var_tests

Variance Equality Tests
path_neat

Script Path
peek_neat

Cursory Summaries and Plots per Group