calculate_variable_split {vivo} | R Documentation |
Internal Function for Split Points for Selected Variables
Description
This function calculate candidate splits for each selected variable.
For numerical variables splits are calculated as percentiles
(in general uniform quantiles of the length grid_points
).
For all other variables splits are calculated as unique values.
Usage
calculate_variable_split(data, variables = colnames(data), grid_points = 101)
Arguments
data |
validation dataset. Is used to determine distribution of observations. |
variables |
names of variables for which splits shall be calculated |
grid_points |
number of points used for response path |
Value
A named list with splits for selected variables
Note
This function is a copy of calculate_varaible_split()
from ingredients
package with small change.
Author(s)
Przemyslaw Biecek
[Package vivo version 0.2.1 Index]