Description Usage Arguments Details Value Examples
View source: R/mnrva_item_matrix.R
Create a matrix of items
1 2 | mnrva_item_matrix(n_items = 5, vec_length = 10, all_unique = FALSE,
max_iteration = 5)
|
n_items |
integer number of items to create (rows) |
vec_length |
integer (even) number of features in each item, or vector length |
all_unique |
logical default is FALSE, setting to TRUE ensures that all item entries are unique. Currently this is accomplished by brute force (iterating and checking until the entire matrix). |
This functions creates a matrix of items. Each item is a randomly permuted vector of 1s and -1s.
matrix items across rows, and features across columns
1 2 | mnrva_item_matrix(n_items = 5, vec_length = 10)
mnrva_item_matrix(n_items = 5, vec_length = 10, all_unique = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.