# Return a summary table of IV
sq_data %>%
dplyr::mutate(X = ifelse(Workweek_span > 40, 1, 0)) %>%
create_IV(outcome = "X",
predictors = c("Email_hours",
"Meeting_hours",
"Instant_Message_hours"),
return = "plot")
# Return summary
sq_data %>%
dplyr::mutate(X = ifelse(Collaboration_hours > 10, 1, 0)) %>%
create_IV(outcome = "X",
predictors = c("Email_hours", "Meeting_hours"),
return = "summary")
Run the code above in your browser using DataLab