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!

descriptive statistics in R

How to Calculate Descriptive Statistics in R the Easy Way with dplyr

In this post, we will learn how to calculate summary statistics in R. Specifically, we will learn how to calculate the standard deviation, mean (trimmed, harmonic, geometric), variance, IQR, quantiles. etc. We will learn how to save the summary statistics as latex (so we can output it to a nice table in a PDF, for instance), and how to save it as a csv file.

How to Calculate Descriptive Statistics in R the Easy Way with dplyr Read More »

How to Handle Coroutines with asyncio in Python

In this post, we introduce a generalization of the concept of subroutines, known as coroutines: just like subroutines, coroutines compute a single computational step, but unlike subroutines, there is no main program to coordinate the results. The coroutines link themselves together to form a pipeline without any supervising function responsible for calling them in a particular order.

How to Handle Coroutines with asyncio in Python Read More »

Scroll to Top