DataDummyHierarchy: Create a (signed) dummy matrix for hierarcical mapping of...

Description Usage Arguments Value Author(s)

View source: R/HierarchyCompute.R

Description

Create a (signed) dummy matrix for hierarcical mapping of codes in data

Usage

1
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.

Author(s)

Øyvind Langsrud


statisticsnorway/SSBtools documentation built on March 3, 2020, 1:34 a.m.