Adventures in Data Cleaning

I’m updating my first R-related blog post, from back in 2016. In it, I used reshape2 to do some data cleaning on a messy dataset. In this update, I’m going to use tools from the tidyverse instead. I’m keeping most of the text the same, but changing the code chunks. [Read More]

Rescaling Variables with R

In doing some RA work, I’ve needed to rescale or normalize different variables. Working with survey data, it can be very difficult to compare ordinal results across questions. Say for instance that we want to get the correlation of perceived economic status and perceived social status. The Latinobarómetro survey asks the first question with a scale from 0 to 10. The second item, though, is reported on a five-point scale. If we want to easily interpret correlation, it helps to have these on the same scale. [Read More]