Learn R Programming

healthcareai (version 1.2.4)

build_process_variable_df_list: Build a list of dataframes with new predictions for each modifiable variable.

Description

Builds a list consisting of one dataframe per row in dataframe which shows how the predictions for that row change as each of the mofifiable variables are altered

Usage

build_process_variable_df_list(dataframe, grain_column_values,
  modifiable_variable_levels, predict_function, smaller_better)

Arguments

dataframe

A dataframe consisting of deployment data.

grain_column_values

The grain column (values, not just the name) of the deployment data.

modifiable_variable_levels

A list indexed by the modifiable process variables and containing the factor levels of each such variable.

predict_function

A function with which to make new predictions on the data.

smaller_better

A boolean indicating whether the goal is to increase or decrease the predictions/predicted probabilities.

Value

A list of dataframes.