getLVarMatForOneVec {aglm} | R Documentation |
Create L-variable matrix for one variable
getLVarMatForOneVec(x_vec, breaks = NULL, nbin.max = 100, only_info = FALSE)
x_vec |
A numeric vector representing original variable. |
breaks |
A numeric vector representing breaks of bins (If |
nbin.max |
The maximum number of bins (used only if |
only_info |
If |
A list with the following fields:
breaks
: Same as input
dummy_mat
: The created L-variable matrix (only if only_info=FALSE
).
Kenji Kondo