attribute_gen_bijection: Generate a vector to map polytomous vector to integers

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/RcppExports.R

Description

Creates a general bijection vector.

Usage

1

Arguments

K

Number of Attributes

M

Number of Responses

Details

The bijection vector generated is \mathbf v = (M^{K-1},M^{K-2}, …, 1)^\top.

Value

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

Author(s)

Steven Andrew Culpepper and James Joseph Balamuta

See Also

attribute_inv_gen_bijection() and attribute_bijection()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Construct an attribute bijection for M responses ----
biject_ternary = attribute_gen_bijection(5, 3)
biject_ternary

## Construct an attribute bijection for binary responses ----
biject_binary = attribute_gen_bijection(5, 2)
biject_binary

## Construct an attribute bijection for binary responses ----
biject_default = attribute_bijection(5)
biject_default

tmsalab/edmcore documentation built on Sept. 4, 2021, 2:46 a.m.