bug Description
If data, predictors, or outcome are not properly specified, the function might fail without a clear error message. In short function doesn't validate the inputs.
To Reproduce
Run below code to reproduce.
pq_data %>%
dplyr::mutate(X = ifelse(Internal_network_size > 40, 0, 0)) %>%
create_IV(outcome = "X",
predictors = c("Email_hours", "Meeting_hours"),
return = "plot")
Expected behavior
We can add input validation to ensure the data is a data frame, predictors are columns in the data, and outcome is a binary variable in the data.
Screenshots

bug Description
If data, predictors, or outcome are not properly specified, the function might fail without a clear error message. In short function doesn't validate the inputs.
To Reproduce
Run below code to reproduce.
pq_data %>%
dplyr::mutate(X = ifelse(Internal_network_size > 40, 0, 0)) %>%
create_IV(outcome = "X",
predictors = c("Email_hours", "Meeting_hours"),
return = "plot")
Expected behavior
We can add input validation to ensure the data is a data frame, predictors are columns in the data, and outcome is a binary variable in the data.
Screenshots
