What should I cite? How should I cite it? Previous blogposts Citing the packages, modules and softwares you used for your analysis is important, both from a reproducibility perspective (statistical routines are often implemented in different w...

What should I cite? How should I cite it? Previous blogposts Citing the packages, modules and softwares you used for your analysis is important, both from a reproducibility perspective (statistical routines are often implemented in different w...

Fit an anova APA formatted output Correlations, t-tests, regressions… Evolution Credits On similar topics Psychology is still (unfortunately) massively using analysis of variance (ANOVA). Despite its relative simplicity, I am very often confronted to errors in its reporting, for instance in student’s theses or manuscripts. Beyond the incomplete, uncomprehensible or just wrong reporting, one can...

Do a correlation APA formatted output Dataframe of Values Bayesian Correlation Contribute Credits Previous blogposts One of the most time-consuming part of data analysis in psychology is the copy-pasting of specific values of some R output to a manuscript or a report. This task is frustrating, prone to errors, and increase de variability of...

Sometimes, for visualization purposes, we want to extract a reference grid of our dataset. This reference grid often contains equally spaced values of a “target” variable, and all other variables “fixed” by their mean, median or reference level. The refdata of the psycho package was built to do just that. The Model Let’s build a complex machine learning model (a neural...

Do a t-test APA formatted output Flexibility Dataframe of Values Contribute Credits Previous blogposts One of the most time-consuming part of data analysis in psychology is the copy-pasting of specific values of some R output to a manuscript or a report. This task is frustrating, prone to errors, and increases the variability of statistical...

Traditional Correlation Bayesian APA formatted Correlation Indices Posterior Credits The Bayesian framework is the right way to go for psychological science. To facilitate its use for newcommers, we implemented the bayes_cor.test function in the psycho package, a user-friendly wrapper for the correlationBF function of the great BayesFactor package by Richard D. Morey. Traditional Correlation Let’s first perform a...

The Model Plot Credits As Bayesian models usually generate a lot of samples (iterations), one could want to plot them as well, instead (or along) the posterior “summary” (with indices like the 90% HDI). This can be done quite easily by extracting all the iterations in get_predicted from the psycho package. The Model # devtools::install_github("neuropsychology/psycho.R") # Install the last...

The method agreement procedure Tweaking Credits The method agreement procedure When running a factor analysis, one often needs to know how many components / latent variables to retain. Fortunately, many methods exist to statistically answer this question. Unfortunately, there is no consensus on which method to use. Therefore, the n_factors() function, available in the psycho package, performs the method...

Another correlation function?! A table A Plot A print Options Fun with p-hacking Credits Another correlation function?! Yes, the correlation function from the psycho package. devtools::install_github("neuropsychology/psycho.R") # Install the newest version library(psycho) library(tidyverse) cor % correlation() This function automatically select numeric variables and run a correlation analysis. It returns a psychobject. A table We can then extract a formatted...

e-mails with the latest R posts.

(You will not see this message again.)