Description Usage Arguments Value Author(s) Examples
View source: R/Nominal2Binary.R
This function transforms a nominal variable into a binary matrix with as many colums as categories. Each row of the matrix has a value of 1 for the corresponding level of the category and 0 elsewhere.
1 |
y |
A vector containing the values of nominal variable measured on a set of individuals- The values must be integers starting at 1. |
An object of type matrix:
Z |
The binary indicator matrix asociated to the nominal variable |
Jose Luis Vicente-Villardon,Julio Cesar Hernandez Sanchez
Maintainer: Jose Luis Vicente-Villardon <villardon@usal.es>
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.