Blog Archives

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 »

Beautiful and Powerful Correlation Tables in R

May 17, 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 »

Format and Interpret Linear Mixed Models

May 9, 2018
By

The data Fit the model The analyze function Summary Print Credits You find it time-consuming to manually format, copy and paste output values to your report or manuscript? That time is over: the psycho package is here for you! The data Let’s take the example dataset included in the psycho package. library(psycho) library(tidyverse) df % select(Participant_ID, ...

Read more »

How to do Repeated Measures ANOVAs in R

April 30, 2018
By
How to do Repeated Measures ANOVAs in R

Don’t do it The Emotion Dataset The effect of Emotion Post-hoc / Contrast Analysis Interaction Note Credits Don’t do it Ha! Got ya! Trying to run some old school ANOVAs hum? I’ll show you even better! There is now a tremendous amount of data showing the inadequacy of ANOVAs as a statistical procedure (Camilli, 1987; Levy,...

Read more »

Compute Signal Detection Theory Indices with R

March 28, 2018
By
Compute Signal Detection Theory Indices with R

Signal Detection Theory Indices (dprime, beta…) Signal detection theory (SDT) is used when psychologists want to measure the way we make decisions under conditions of uncertainty. SDT assumes that the decision maker is not a passive receiver of information, but an active decision-maker who makes difficult perceptual judgments under conditions of uncertainty. To apply signal detection theory to a data...

Read more »

Standardize (Z-score) a dataframe

March 28, 2018
By
Standardize (Z-score) a dataframe

Standardize / Normalize / Z-score / Scale The standardize() function allows you to easily scale and center all numeric variables of a dataframe. It is similar to the base function scale(), but presents some advantages: it is tidyverse-friendly, data-type friendly (i.e., does not transform it into a matrix) and can handle dataframes with categorical data. library(psycho) library(tidyverse) z_iris % psycho::standardize() summary(z_iris) ...

Read more »

Installing R and R studio

March 20, 2018
By

Guide Install R and R Studio Go here: https://cloud.r-project.org/ Download the last version for your OS Install it Go here: https://www.rstudio.com/products/rstudio/download/#download Download the right version for your OS Install it Start R studio Install the psycho package If you’ve never used psycho, enter one of the following in the console and press enter: # This for the stable...

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)