discretizeData_model: Discretize numerical variables in a dataset based on...

View source: R/discretizeData_model.R

discretizeData_modelR Documentation

Discretize numerical variables in a dataset based on thresholds used in the model to create splits.

Description

This function discretizes all numerical variables into Kmax categories based on the splits used by the model for each variable.

Usage

discretizeData_model(data, conditions, Kmax = 2, return_split = FALSE)

Arguments

data

data to discretize

conditions

character vector with all conditions from which to find the thresholds

Kmax

numeric, maximal number of categories for each variable (default: Kmax = 2).

return_split

if TRUE, then the table with thresholds used to discretize data is also returned.

Value

Data with discretized variables.


aruaud/endoR documentation built on Jan. 25, 2025, 2:20 a.m.