Nominal2Binary: Transformation of a nominal variable into a binary indicator...

Description Usage Arguments Value Author(s) Examples

View source: R/Nominal2Binary.R

Description

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.

Usage

1

Arguments

y

A vector containing the values of nominal variable measured on a set of individuals- The values must be integers starting at 1.

Value

An object of type matrix:

Z

The binary indicator matrix asociated to the nominal variable

Author(s)

Jose Luis Vicente-Villardon,Julio Cesar Hernandez Sanchez

Maintainer: Jose Luis Vicente-Villardon <villardon@usal.es>

Examples

1
2
3
4

NominalLogisticBiplot documentation built on May 2, 2019, 6:03 a.m.