DataDummyHierarchy: Create a (signed) dummy matrix for hierarcical mapping of codes in data
Description
Create a (signed) dummy matrix for hierarcical mapping of codes in data
Usage
DataDummyHierarchy(dataVector, dummyHierarchy)
Arguments
dataVector
A vector of codes in data
dummyHierarchy
Output from DummyHierarchy()
Value
A sparse matrix.
Column names are taken from dataVector (if non-NULL) and row names are taken from
the row names of dummyHierarchy.