permutate_attribute_level_table: Permutation Attribute Table

Description Usage Arguments Examples

View source: R/permutations.R

Description

Generate a table containing attribute permutations.

Usage

1

Arguments

k

Supply the number of attributes to change

m

Number of Responses. Default: 2.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Example of generating all attribute level swap permutations
k = 3
nClass = 2 ^ k

# Total number of label swaps for unstructured mixture
factorial(nClass)

# Total number of label swaps for structured mixture
factorial(k) * (2 ^ k)

# Create the permutation table
permutation_table = permutate_attribute_level_table(k = 3, m = 2)

# Loop over columns to find the positions of the equivalent attribute level swaps

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