mnrva_item_matrix: Create a matrix of items

Description Usage Arguments Details Value Examples

View source: R/mnrva_item_matrix.R

Description

Create a matrix of items

Usage

1
2
mnrva_item_matrix(n_items = 5, vec_length = 10, all_unique = FALSE,
  max_iteration = 5)

Arguments

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).

Details

This functions creates a matrix of items. Each item is a randomly permuted vector of 1s and -1s.

Value

matrix items across rows, and features across columns

Examples

1
2
mnrva_item_matrix(n_items = 5, vec_length = 10)
mnrva_item_matrix(n_items = 5, vec_length = 10, all_unique = TRUE)

CrumpLab/minerva documentation built on Oct. 30, 2019, 5:50 a.m.