Skip to contents

This function is not exported. It computes data needed to calculate its ALE values.

Usage

prep_var_for_ale(x_col, x_type, x_vals, bins, n, max_num_bins, X = NULL)

Arguments

x_col

character(1). Name of single column in X for which ALE data is to be calculated.

x_type

character(1). var_type() of x_col.

x_vals

vector. The values of x_col.

bins, n

See documentation for calc_ale()

max_num_bins

See documentation for ale()

X

See documentation for calc_ale(). Used only for categorical x_col.