View source: R/generateItems.R
genItems | R Documentation |
Generates a list of item parameter matrices for use in
function like conquestr::genResponses
and conquestr::informationWrightMap
genItems(n, scores = NULL, deltadots, taus, discrims = 1, centre = NULL)
n |
How many items? |
scores |
When NULL it is assumed that all items have integer scoring, increasing for each category k, and beginning from 0. Otherwise a list where the elements are, in order:
|
deltadots |
A list that describes the sampling distribution from which item location paramters are drawn. The elements of the list are, in order:
|
taus |
A list that describes the sampling distribution from which taus are drawn. Taus are deviations away from the average item location parameter. The elements of the list are, in order:
|
discrims |
A list that describes the sampling distribution from which discrimination parameters are drawn.
|
centre |
A number indicating the value to centre the generated values in deltadots on. Typically 0 for identification purposes. If NULL then values are left at their generated values (e.g., deviating from the expected mean proportional to sampling error). |
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(abilities = rnorm(100), itemParams = myItems)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.