Blog Archives

How to Cite Packages

August 30, 2018
By

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...

Read more »

The end of errors in ANOVA reporting

July 19, 2018
By

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...

Read more »

Variable vs. Participant-wise Standardization

July 13, 2018
By
Variable vs. Participant-wise Standardization

The data Standardize Effect of Standardization At a general level At a participant level Distribution Correlation Test Conclusion Credits Previous blogposts To make sense of their data and effects, psychologists often standardize (Z-score) their variables. However,...

Read more »

Formatted Correlation with Effect Size

June 27, 2018
By

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...

Read more »

Extracting a Reference Grid of your Data for Machine Learning Models Visualization

June 24, 2018
By
Extracting a Reference Grid of your Data for Machine Learning Models Visualization

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...

Read more »

Copy/paste t-tests Directly to Manuscripts

June 18, 2018
By
Copy/paste t-tests Directly to Manuscripts

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...

Read more »

Easy APA Formatted Bayesian Correlation

June 10, 2018
By
Easy APA Formatted Bayesian Correlation

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...

Read more »

Fancy Plot (with Posterior Samples) for Bayesian Regressions

June 2, 2018
By
Fancy Plot (with Posterior Samples) for Bayesian Regressions

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...

Read more »

How Many Factors to Retain in Factor Analysis

May 23, 2018
By
How Many Factors to Retain in Factor Analysis

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...

Read more »

Beautiful and Powerful Correlation Tables in R

May 19, 2018
By
Beautiful and Powerful Correlation Tables in R

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...

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)