Create L-variable matrix for one variable
getLVarMatForOneVec(x_vec, breaks = NULL, nbin.max = 100, only_info = FALSE)
A list with the following fields:
breaks
: Same as input
dummy_mat
: The created L-variable matrix (only if only_info=FALSE
).
A numeric vector representing original variable.
A numeric vector representing breaks of bins (If NULL
, automatically generated).
The maximum number of bins (used only if breaks=NULL
).
If TRUE
, only information fields of returned values are filled and no dummy matrix is returned.
Kenji Kondo