generate_Z | R Documentation |
Generate a row-wise stacked boolean partition matrix of JI rows and K columns
generate_Z(I, J, K, type = c("symmetric", "random"))
I |
(integer) number of individuals |
J |
(integer) number of trials |
K |
(integer) number of levels for a categorical variables |
type |
(character) method to generate the matrix: symmetric (default) or random |
The function generates a (JI x K) boolean partition matrix for I individuals, J stimuli and K categories. Note that J and K must be chosen so that J This is an internal function, generally not to be called by the user.
a (JI x K) boolean matrix
Z <- generate_Z(I = 2,J = 12,K = 4,type="symmetric")
print(Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.