Description Usage Arguments Details Value Author(s) See Also Examples
Computes the powers of 2 from 0 up to K - 1 for K-dimensional attribute pattern.
1 |
K |
Number of Attributes. |
The bijection vector generated is \mathbf v = (2^{K-1},2^{K-2},…,1)^\top. With the bijection vector, there is a way to map the binary latent class with c=\mathbfα_c^\top\mathbf v\in\{0, 1,…, 2^{K}-1\}. For example, for K = 2, \mathbf v=(2, 1)^\top and the integer representations for attribute profiles \mathbf α_0=(0,0)^\top, \mathbf α_1=(0,1)^\top, \mathbf α_2=(1, 0)^\top, and \mathbf α_3=(1,1)^\top are c = 0, 1, 2, and 3, respectively.
A vec
with length K detailing the power's of 2.
Steven Andrew Culpepper and James Joseph Balamuta
1 2 3 4 | ## Construct an attribute bijection for binary data ----
bijection_k3 = attribute_bijection(3)
bijection_k3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.