View source: R/generateHelpers.R
genItems | R Documentation |
Generates a list of item parameter matrcies for use in
function like conquestr::genResponses
and conquestr::informationWrightMap
genItems(n, scores = NULL, deltadots, taus = NULL, discrims = 1)
n |
How many items? |
scores |
When NULL it is assumed that all items have integer scoring, increasing for each category k, and begining from 0. Otherwise a list where the elements are, in order:
|
deltadots |
A list where the elements are, in order:
|
taus |
When NULL all items are assumed to be dichotomies. Otherwise a list where the elements are, in order:
|
discrims |
When NULL all items are assumed to have constant discrimination equal to 1. Otherwise a list where the elements are, in order:
|
A list of item matrices.
simplef()
, genResponses, browseVignettes("conquestr")
myItem <- matrix(c(0, 0, 0, 0, 1, 1, 0, 1), ncol = 4, byrow = TRUE)
myItems <- list(myItem, myItem)
myItems[[2]][2, 2] <- -1 # make the second item delta equal to -1
myResponses <- genResponses(rnorm(100), myItems)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.