library(tidyverse)
library(knitr)
library(tidymodels)
AE 06: Probabilities, Odds, Odds ratios
Go to the course GitHub organization and locate your ae-06 repo to get started.
Render, commit, and push your responses to GitHub by the end of class to submit your AE.
Introduction
You are an analyst for a large company consisting of regional sales teams across the country. Twice every year, this company promotes some of its salespeople. Promotion is at the discretion of the head of each regional sales team, taking into consideration financial performance, customer satisfaction ratings, recent performance ratings and personal judgment.
You are asked by the management of the company to conduct an analysis to determine how the factors of financial performance, customer ratings and performance ratings influence the likelihood of a given salesperson being promoted. You are provided with a data set containing data for the last three years of salespeople considered for promotion.1
For this analysis, you will focus on understanding the association between performance rating and promotion using the following variables:
promoted
: A binary value indicating 1 if the individual was promoted and 0 if notperformance
: the most recent performance rating prior to promotion, from 1 (lowest) to 4 (highest)
Click here to see the full data dictionary.
<- "http://peopleanalytics-regression-book.org/data/salespeople.csv"
url <- read_csv(url) |>
employees drop_na(performance) |>
mutate(promoted = factor(promoted),
performance = factor(performance))
# add code here
# add code here
# add code here
# add code here
[add response here]
To submit the AE:
Render the document to produce the PDF with all of your work from today’s class.
Push all your work to your AE repo on GitHub. You’re done! 🎉
Footnotes
Excerpt from Chapter 5 of Handbook of Regression Modeling in People Analytics by Keith McNulty.↩︎