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
Blog
Examples
Questions
Authors
Reference

:warning: NOTE: This package is being deprecated in favour of the report package. Please check it out and ask for any missing features.


Goal

The main goal of the psycho package is to provide tools for psychologists, neuropsychologists and neuroscientists, to facilitate and speed up the time spent on data analysis. It aims at supporting best practices by providing tools to format the output of statistical methods to directly paste them into a manuscript, ensuring standardization of statistical reporting.

Contribute

psycho is a young package in need of affection. You can easily hop aboard the development of this open-source software and improve psychological science:

  • Need some help? Found a bug? Request a new feature? Just open an issue :relaxed:
  • Want to add a feature? Correct a bug? You're more than welcome to contribute!

Don't be shy, try to code and submit a pull request (PR). Even if unperfect, we will help you to make a great PR! All contributors will be very graciously rewarded. Someday.

Examples

Check examples in the following vignettes:

Or blog posts:

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 ;)

Contributors

Copy Link

Version

Install

install.packages('psycho')

Monthly Downloads

921

Version

0.5.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Dominique Makowski

Last Published

January 22nd, 2020

Functions in psycho (0.5.0)

find_season

Find season of dates.
is.standardized

Check if a dataframe is standardized.
is.psychobject

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

Extract values as list.
percentile

Transform z score to percentile.
percentile_to_z

Transform a percentile to a z score.
plot.psychobject

Plot the results.
summary.psychobject

Print the results.
remove_empty_cols

Remove empty columns.
mellenbergh.test

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

Golden Ratio.
assess

Compare a patient's score to a control group
print.psychobject

Print the results.
power_analysis

Power analysis for fitted models.
find_matching_string

Fuzzy string matching.
find_combinations.formula

Generate all combinations of predictors of a formula.
affective

Data from the Affective Style Questionnaire (ASQ - French Validation)
crawford.test.freq

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

Crawford-Garthwaite (2007) Bayesian test for single-case analysis.
crawford_dissociation.test

Crawford-Howell (1998) modified t-test for testing difference between a patient<U+00E2><U+20AC><U+2122>s performance on two tasks.
find_combinations

Generate all combinations.
emotion

Emotional Ratings of Pictures
dprime

Dprime (d') and Other Signal Detection Theory indices.