Processing math: 100%

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

attribute_bijection(K)

Arguments

K

Number of Attributes.

Value

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

Details

The bijection vector generated is v=(2K1,2K2,,1). With the bijection vector, there is a way to map the binary latent class with c=αcv{0,1,,2K1}. For example, for K=2, v=(2,1) and the integer representations for attribute profiles α0=(0,0), α1=(0,1), α2=(1,0), and α3=(1,1) are c = 0, 1, 2, and 3, respectively.

See also

Author

Steven Andrew Culpepper and James Joseph Balamuta

Examples

## Construct an attribute bijection for binary data ---- bijection_k3 = attribute_bijection(3) bijection_k3
#> [,1] #> [1,] 4 #> [2,] 2 #> [3,] 1