Skip to content

Issue in create_IV : function doesn't validate the inputs #238

Description

@sachinstl

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
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions