Part 25 Lab 4: Personality and green reputation
In this lab, You will analyze data looking at the relationship between green reputation and three personality traits– compassion, intellectual curiosity, and openness to experiences. The dataset includes data from students and non-students.
25.1 Getting started
Make a new RMarkdown script for this lab. In the setup chunk at the top of your scripts, load the packages needed for this lab.
Download the 2 data files for this lab and save them in the data
folder of your
GitHub folder.
Add a chunk with these lines chunk to your RMarkdown script to import the data.
<- readr::read_csv(here::here("data", "green_dictionary.csv"))
dictionary <- readr::read_csv(here::here("data", "green_data.csv")) green_data
For your assignment, do the following.
- Inspect the item responses (e.g., with graphs or by summarizing distinct values). Is anything unusual?
- Compute total scores for the four scales. Recode variables as needed.
- Rescale the variables so that they go from 0-100 instead of the original range.
Name the recaled variables
*_pomp
. - Make plots that illustrate the distributions of the 4 POMP-scored variables.
- Make scatterplots showing the relationships between green reputation and each personality trait. Include trend lines for students and non-students. What do these plots show?
- Compare green reputation for students and non-students using a rainfall plot (bar + density + data points).
- Compute a summary table of means, SDs, medians, minima, and maxima for the four total scores for students and non-students.