Exercise

Switching rank and gender

Create a new model called m_bty_rank with gender removed and rank added in.

Instructions

100 XP
  • Fit a linear model called m_bty_rank to predict average professor score by average beauty rating bty_avg and by rank (add the two variables).
  • Print the outcome with the help of summary().
  • How does R appear to handle categorical variables that have more than two levels? Note that the rank variable has three levels: teaching, tenure track, tenured.