unmap: An Unmap Function

View source: R/unmap.R

unmapR Documentation

An Unmap Function

Description

This function does the opposite to the map() function. It takes the class membership and unmap it to a matrix with entries that equal 1 if the component membership corresponded to that column. It will not drop empty column/class.

Usage

unmap(mapz, G)

Arguments

mapz

Vector of class membership

G

Number of component in assumed

Value

A matrix with the i,jth entry equals 1 when the ith observation belongs to the jth group.

Examples

unmap()

yuanfang90/LNMVGA documentation built on Jan. 29, 2024, 8:24 a.m.