getUDummyMatForOneVec {aglm} | R Documentation |
Create a U-dummy matrix for one variable
Description
Create a U-dummy matrix for one variable
Usage
getUDummyMatForOneVec(
x_vec,
levels = NULL,
drop_last = TRUE,
only_info = FALSE
)
Arguments
x_vec |
A vector representing original variable.
The class of |
levels |
A character vector representing values of |
drop_last |
If |
only_info |
If |
Value
A list with the following fields:
-
levels
: Same as input. -
drop_last
: Same as input. -
dummy_mat
: The created U-dummy matrix (only ifonly_info=FALSE
).
Author(s)
Kenji Kondo
[Package aglm version 0.4.0 Index]