Description Usage Arguments Value Author(s)
Create a O-dummy matrix for one variable
1 2 3 4 5 6 7 | getODummyMatForOneVec(
x_vec,
breaks = NULL,
nbin.max = 100,
only_info = FALSE,
dummy_type = NULL
)
|
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 |
dummy_type |
Used to control the shape of linear combinations obtained by O-dummies for quantitative variables (deprecated). |
A list with the following fields:
breaks
: Same as input
dummy_mat
: The created O-dummy matrix (only if only_info=FALSE
).
Kenji Kondo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.