Learn R Programming

ACTCD (version 1.3-0)

alpha: All possible attribute patterns

Description

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

Usage

alpha(K)

Value

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

Arguments

K

The number of attributes.

See Also

eta

Examples

Run this code
# Generate all possible attribute patterns given the number of attributes, K.
K <- 3
A3 <- alpha(K)
K <- 4
A4 <- alpha(K)

Run the code above in your browser using DataLab