attribute_bijection {simcdm}R Documentation

Constructs Unique Attribute Pattern Map

Description

Computes the powers of 2 from 0 up to K - 1 for K-dimensional attribute pattern.

Usage

attribute_bijection(K)

Arguments

K

Number of Attributes.

Value

A vec with length K detailing the power's of 2.

Author(s)

Steven Andrew Culpepper and James Joseph Balamuta

See Also

attribute_inv_bijection()

Examples

## Construct an attribute bijection ----
biject = attribute_bijection(3)

[Package simcdm version 0.1.2 Index]