Analyze the variables
Create numerical and visual summaries of the two variables individually to better understand their distribution. Also compute summary statistics and visualizations that display the relationship between the two variables.
This exercise is part of the course
Data Analysis and Statistical Inference
Exercise instructions
- Use the
summary()
function to summarize the variables wordsum and class of thegss
dataset. - Make some plots of the variables.
- Numerically analyze the relationship between the variables using the
by()
function. - Vizualize the relationship between the variables.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# The gss data frame is already loaded into the workspace
# Numerical and visual summaries of wordsum and class:
# Numerical and visual summaries of their relations: