Description Usage Arguments Value Author(s)
Create a U-dummy matrix for one variable
| 1 2 3 4 5 6 | getUDummyMatForOneVec(
  x_vec,
  levels = NULL,
  drop_last = TRUE,
  only_info = FALSE
)
 | 
| x_vec | A vector representing original variable.
The class of  | 
| levels | A character vector representing values of  | 
| drop_last | If  | 
| only_info | If  | 
A list with the following fields:
levels: Same as input.
drop_last: Same as input.
dummy_mat: The created U-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.