Week 5 - Psych 214
Class Slides and Materials
- CHECK-IN : Working with the Mini Class Dataset (see below)
- DATA (AND CODEBOOK) FOR TODAY : Mini Class
- Professor R Scripts [Zoom Room + Room Crew]
Due Next Week
- Complete and Submit Lab 4
- No New Reading or Reading Quiz :)
Lab 4
Use R to answer the following questions. Number your responses to help me grade. Make sure that you show your R code and the output (result or graphs) by taking a screenshot and pasting your code and output into a Google or Word Document.
Problem 1. Mini Class Data with Professor.
Use the “Mini” Class Dataset (on Canvas, under Class Datasets) to answer the following questions. Make sure to load the data and a) rename it, b) check the Headers, c) set stringsAsFactor = TRUE, and d) check to make sure the data loaded correctly into R.
- Choose two numeric variables from the dataset. Graph each variable variables side-by-side using the par() function. Make sure the variables look nice, and remove any outliers.
- Report the descriptive statistics for each variable. Then, explain what each variable tells you about the individuals in the dataset.
- Describe what additional questions you have about each variable.
Problem 2. Mini Class Data by Yourself.
- Repeat the steps above for one numeric variable of your choosing.
- Then, graph a categorical variable, report the frequency of each group (you can get this using summary(d$variable)), and describe what you learn about the variable. As a reminder, to graph a categorical variable, you will need to make sure you clicked “stringsAsFactor = T”) when loading the data and are using the plot() function for the graph.
AI Disclosure.
Please describe how you used AI tools; make sure you include specific prompts here. Thanks!