From the course: Complete Guide to R: Wrangling, Visualizing, and Modeling Data
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Creating scale scores by averaging
From the course: Complete Guide to R: Wrangling, Visualizing, and Modeling Data
Creating scale scores by averaging
- [Instructor] I want to finish our discussion of recoding data by doing another basic procedure which is averaging scores. Anytime you're measuring something, you know that any one measurement has its own idiosyncratic meaning, and it can be a little bit off of what you intend to measure. That's why you want to get several different perspectives, ask several questions, each of which approaches the topic of interest from a different direction. The idea there is that the idiosyncratic variation of each variable will tend to cancel out, and you'll be left with a clearer image of the signal amidst the noise that you're looking for. Now, I want to show you how to do this by first loading a few packages, including rio, because I'm going to bring in the state data set that I've used previously, and I'm going to keep just a few variables. Let's zoom in on this one. This gives us the 48 Continental United States along with their Google search terms for museum, scrapbook, and modern dance. And…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.