View source: R/ExportedFuncs.R
attributepattern | R Documentation |
This function generates all possible attribute patterns. The Q-matrix needs to be specified for polytomous attributes.
attributepattern(K, Q)
K |
number of attributes |
Q |
Q-matrix; required when Q-matrix is polytomous |
A 2^K\times K matrix consisting of attribute profiles for 2^K latent classes
Wenchao Ma, The University of Alabama, wenchao.ma@ua.edu
Jimmy de la Torre, The University of Hong Kong
attributepattern(3) q <- matrix(scan(text = "0 1 2 1 0 1 1 2 0"),ncol = 3) q attributepattern(Q=q) q <- matrix(scan(text = "0 1 1 1 0 1 1 1 0"),ncol = 3) q attributepattern(K=ncol(q),Q=q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.