How to Import Data: Reading SAS Files in R with Haven & sas7dbat
In this post we are going to learn two very easy ways to load SASdata files (.sav7bdat) in R.
How to Import Data: Reading SAS Files in R with Haven & sas7dbat Read More »
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!
In this post we are going to learn two very easy ways to load SASdata files (.sav7bdat) in R.
How to Import Data: Reading SAS Files in R with Haven & sas7dbat Read More »
This short Python tutorial will teach us how to turn the code from blog posts to Jupyter notebooks. Specifically, we will learn how to convert HTML to Jupyter Notebooks (.ipynb). In this post, we will use the Python packages BeautifulSoup4, json, and urllib. We will use these packages to scrape the code from webpages, putting
Converting HTML to a Jupyter Notebook (.ipynb) Read More »
Here you will learn how to create scatter plots in R. In this post we will, focus on ggplot2, from the tidyverse, among other packages to learn how to create the plots, add text, change color, group, and a regression line.
How to Make a Scatter Plot in R with Ggplot2 Read More »
In this post we are going to learn two very easy ways to load SASdata files (.sav7bdat) into Pandas dataframes.
How to Read SAS Files in Python with Pandas Read More »
In this tutorial, we will learn how to work with Excel files in R statistical programming environment. It will provide an overview of how to use R to load xlsx files and write spreadsheets to Excel.
R Excel Tutorial: How to Read and Write xlsx files in R Read More »
In this post you will learn all you need to know about working with iloc and loc. That is, you will learn how to select, slice, and index dataframes using integer-based and name-based indexing.
How to use iloc and loc for Indexing and Slicing Pandas Dataframes Read More »
Learn how to use Binder, mybinder, git, and GitHub to make your R statistical analysis and visualization reproducible for other researchers.
How to Use Binder and R for Reproducible Research Read More »
In this post we are going to learn two very easy ways to load SPSS data files (.sav) into Pandas dataframes.
When we know how to read SPSS files using Python we will learn how to write .sav files in Python as well.
How to Read & Write SPSS Files in Python using Pandas Read More »
In this post you will learn how to carry out MANOVA in Python using the Python package Statsmodels.
MANOVA in Python Made Easy using Statsmodels Read More »
Here we learn how to do simplify our data preprocessing work using the Python package Pyjanitor. In fact, we are going to learn how to:
> Add a column to a Pandas dataframe
> Remove missing values
> Remove an empty column
> Cleaning up column names
And all of this using only a few lines of code (end of the post).
The Easiest Data Cleaning Method using Python & Pandas Read More »