Learn R Programming

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

Efficient and Publishing-Oriented Workflow for Psychological Science

psycho

Namepsycho
Stable
Documentation
Page
Examples
Questions
Authors
Reference

Goal

The main goal of the psycho package is to provide tools for psychologists, neuropsychologists and neuroscientists, to transform statistical outputs into something readable that can be, almost directly, copied and pasted into a report. It also implements various functions, from very useful ones (correlation(), standardize()) to miscellaenous ones (find_season()).

Contribute

Want to get involved in the developpment of an open-source software and improve psychological science? Join us!

  • You need some help? You found a bug? You would like to request a new feature? Just open an issue :relaxed:

  • Want to add a feature? Correct a bug? You're more than welcome to contribute!

  • Looking for help to implement the analyze method for t.test, cor.test and anova.

Features

The psycho package can already do the following:

  • Standardize your data
  • Enlight you on how many factors to retain for a PCA
  • Give you some clinically relevant info on a participant's score
  • Implements methods for single-case analyses
  • Compute complex correlation matrices
  • Compute signal detection theory indices (d', beta, ...)
  • Help you in the interpretation of various models (lme4, stan_lmer)

General Workflow

The package revolves around the psychobject. Main functions from the package return this type, and the analyze() function transforms other R objects into psychobjects. Four functions can then be applied on a psychobject: summary(), print(), plot() and values().

Installation

  • To get the stable version from CRAN, run the following commands in your R console:
install.packages("psycho")
library("psycho")
  • To get the latest development version, run the following:
install.packages("devtools")
library("devtools")
install_github("neuropsychology/psycho.R")
library("psycho")

Credits

You can cite the package as following:

  • Makowski, (2018). The psycho Package: an Efficient and Publishing-Oriented Workflow for Psychological Science. Journal of Open Source Software, 3(22), 470. https://doi.org/10.21105/joss.00470

Please remember that psycho is a high-level package that heavily relies on many other packages, such as tidyverse, psych, qgraph, rstanarm, lme4 and others (See Description for the full list of dependencies). Please cite their authors ;)

Copy Link

Version

Install

install.packages('psycho')

Monthly Downloads

825

Version

0.1.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Dominique Makowski

Last Published

March 22nd, 2018

Functions in psycho (0.1.4)

mellenbergh.test

Mellenbergh & van den Brink (1998) test for pre-post comparison.
find_season

Find season of dates.
dprime

Dprime and Other Signal Detection Theory indices.
crawford.test

Crawford-Howell (1998) t-test for single-case analysis.
n_factors

Find Optimal Factor Number.
summary.psychobject

Print the results.
analyze.glmerMod

Analyze glmerMod objects.
format_digit

Format digits.
values

Extract values as list.
assess

Compare a score to a parent population.
print.psychobject

Print the results.
format_p

Format p values.
standardize

Standardize (scale and reduce) numeric variables.
analyze

Analyze objects.
interpret_d

Return the interpretation of a Cohen's d or a standardized coefficient following Cohen (1988).
odds_to_probs

Convert (log)odds to probabilies.
analyze.merMod

Analyze merMod objects.
is.psychobject

Creates or tests for objects of mode "psychobject".
plot.psychobject

Plot the results.
format_string

Tidyverse-friendly sprintf.
analyze.merModLmerTest

Analyze merModLmerTest objects.
get_predicted

Compute predicted values from models.
get_predicted.stanreg

Compute predicted values of stanreg models.
hdi

Highest Density Intervals (HDI).
analyze.stanreg

Analyze stanreg objects.
correlation

Multiple Correlations.