Learn R Programming

simcdm (version 0.1.2)

attribute_classes: Simulate all the Latent Attribute Profile \(\mathbf{\alpha}_c\) in Matrix form

Description

Generate the \(\mathbf{\alpha}_c = (\alpha_{c1}, \ldots, \alpha_{cK})'\) attribute profile matrix for members of class \(c\) such that \(\alpha_{ck}\) ' is 1 if members of class \(c\) possess skill \(k\) and zero otherwise.

Usage

attribute_classes(K)

Value

A \(2^K\) by \(K\)

matrix of latent classes corresponding to entry \(c\) of \(pi\) based upon mastery and nonmastery of the \(K\) skills.

Arguments

K

Number of Attributes

Author

James Joseph Balamuta and Steven Andrew Culpepper

See Also

sim_subject_attributes() and attribute_inv_bijection()

Examples

Run this code
## Simulate Attribute Class Matrix ----

# Define number of attributes
K = 3

# Generate an Latent Attribute Profile (Alpha) Matrix
alphas = attribute_classes(K)

Run the code above in your browser using DataLab