IV_report {wpa} | R Documentation |
Generate a Information Value HTML Report
Description
The function generates an interactive HTML report using Standard Person Query data as an input. The report contains a full Information Value analysis, a data exploration technique that helps determine which columns in a data set have predictive power or influence on the value of a specified dependent variable.
Usage
IV_report(
data,
predictors = NULL,
outcome,
bins = 5,
max_var = 9,
path = "IV report",
timestamp = TRUE
)
Arguments
data |
A Standard Person Query dataset in the form of a data frame. |
predictors |
A character vector specifying the columns to be used as predictors. Defaults to NULL, where all numeric vectors in the data will be used as predictors. |
outcome |
A string specifying a binary variable, i.e. can only contain the values 1 or 0. |
bins |
Number of bins to use in |
max_var |
Numeric value to represent the maximum number of variables to show on plots. |
path |
Pass the file path and the desired file name, excluding the file
extension. For example, |
timestamp |
Logical vector specifying whether to include a timestamp in the file name. Defaults to TRUE. |
Value
An HTML report with the same file name as specified in the arguments is generated in the working directory. No outputs are directly returned by the function.
Creating a report
Below is an example on how to run the report.
library(dplyr) sq_data %>% mutate(CH_binary = ifelse(Collaboration_hours > 12, 1, 0)) %>% # Simulate binary variable IV_report(outcome = "CH_binary", predictors = c("Email_hours", "Workweek_span"))
See Also
Other Reports:
capacity_report()
,
coaching_report()
,
collaboration_report()
,
connectivity_report()
,
generate_report()
,
meeting_tm_report()
,
read_preamble()
,
subject_validate_report()
,
validation_report()
,
workpatterns_report()
Other Variable Association:
IV_by_period()
,
create_IV()
,
plot_WOE()
Other Information Value:
IV_by_period()
,
create_IV()
,
plot_WOE()