Programming

Programming related posts

In this category you will find posts that are related to programming and should be interesting for psychologists, cognitive scientists, and neuroscientists. Well, almost every researcher would probably find some of the information useful at some time!

Every research psychologist, cognitive scientist, and neuroscientist, should know how to program.. Knowing how to program and write scripts will make many of a researchers everyday tasks much easier. For instance, instead of going through line after line of raw data you can write a Python script that runs through each cell in each column. Furthermore, you get the possibility to use more advanced, and cutting edge, statistical techniques by using R statistical programming environment.

Another example might be to create experiments using PsychoPy (either by coding using Python or using the drag-and-drop interface) and the cheap and open-source Arduino microcontroller. Also, coding is fun and relaxing!

Extract P-Values from lm() in R: Empower Your Data Analysis

In this blog post, we will learn how to extract P-values from the regression models in R. We will explore the process of fitting a regression model, and then dive into the methods of extracting P-values using the lm() function. Additionally, we will demonstrate how to extract P-values from all predictors and leverage the tidy() function for a tidy output. Unlock the power of statistical inference with the ability to extract P-values from lm() in R.

Update R: Keeping Your RStudio Environment Up-to-Date

Keeping your software tools up-to-date is essential for a seamless and efficient workflow, and the R programming language is no exception. In this blog post, we will explore the importance of updating R, discuss the circumstances that may necessitate an update, address the possibility of updating R within RStudio, and explore different methods for upgrading …

Update R: Keeping Your RStudio Environment Up-to-Date Read More »

Report Correlation in APA Style using R: Text & Tables

In this post, you will learn how to report correlation according to APA. Adhering to APA (American Psychological Association) guidelines is crucial when reporting correlation analysis in academic research. Whether you are conducting research in psychology, cognitive hearing science, or cognitive science, APA style is often required by journals and conferences. This post will provide …

Report Correlation in APA Style using R: Text & Tables Read More »

wide format to long format in r

Wide to Long in R using the pivot_longer & melt functions

In this post, we will learn how to transform data from wide to long in R. Wide-to-long format conversion is often an important data manipulation technique in data analysis. In R, we can use many packages and their functions to transform data from a wide to long format. These functions include the tidyr package’s pivot_longer() …

Wide to Long in R using the pivot_longer & melt functions Read More »

testing for normality in R

Test for Normality in R: Three Different Methods & Interpretation

In this blog post, you will learn how to test for the normality of residuals in R. Testing the normality of residuals is a step in data analysis. It helps determine if the residuals follow a normal distribution, which is important in many fields, including data science and psychology. Approximately normal residuals allow for powerful …

Test for Normality in R: Three Different Methods & Interpretation Read More »

durbin watson in r

Durbin Watson Test in R: Step-by-Step incl. Interpretation

This blog will teach you how to carry out the Durbin-Watson Test in R. Have you ever run a linear regression model in R and wondered if the model’s assumptions hold? One common assumption of a linear regression model is the independence of observations, which means that the residuals (the differences between predicted and actual …

Durbin Watson Test in R: Step-by-Step incl. Interpretation Read More »

Scroll to Top