alpha: All possible attribute patterns

Description Usage Arguments Value See Also Examples

View source: R/alpha.R

Description

This function is used to generate all possible attribute patterns given the number of attributes.

Usage

1
alpha(K)

Arguments

K

The number of attributes.

Value

A 2^K \times K binary matrix is returned, 1 representing mastery of the attributes and 0 representing non-mastery of the attributes.

See Also

eta

Examples

1
2
3
4
5
# Generate all possible attribute patterns given the number of attributes, K.
K <- 3
A3 <- alpha(K)
K <- 4
A4 <- alpha(K)

ACTCD documentation built on May 30, 2017, 4:38 a.m.