Build your first logistic regression model
In the video, we build a simple logistic regression model by using emp_age to predict turnover. In this exercise, you will build a similar model to predict turnover using percent_hike.
Also, as discussed in the video, we dropped the following columns from the dataset:
emp_id,mgr_iddate_of_joining,last_working_date,cutoff_datemgr_age,emp_agemedian_compensation,departmentstatus
This new dataset is available in train_set_multi.
Latihan ini adalah bagian dari kursus
HR Analytics: Predicting Employee Churn in R
Petunjuk latihan
- Build a simple logistic regression model to predict
turnoverusingpercent_hike. - Print the summary of this model.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Build a simple logistic regression model
simple_log <- ___(___,
family = "binomial", data = train_set_multi)
# Print summary
___(simple_log)