Description Usage Arguments Value Examples
View source: R/itemResponseTheory.R
Calculate the probability of each possible score for the given 3PL items and a specific theta
1 | scoreProbability.theta.3pl(item_pars, theta)
|
item_pars |
a matrix of doubles, items by params. Must have columns for $PAR_* matching the $MODEL |
theta |
a double. An ability level |
a matrix of doubles, items by scores, containing the probability of each possible score for the given items and a specific theta
1 2 3 4 5 6 7 8 9 10 11 12 13 | simulation = readRDS(system.file("example/passage-optimal.rds", package = "CATSimulator"))
item_pars = as.matrix(simulation$itempool[,startsWith(colnames(simulation$itempool), "PAR_")])
dimnames(item_pars) = list(simulation$itempool$ITEM_ID, colnames(simulation$itempool)[startsWith(colnames(simulation$itempool), "PAR_")])
theta = 2.0
scoreProb = scoreProbability.theta.3pl(item_pars, theta)
options(digits=8, scipen=8)
> scoreProb 0 1
item042 0.649862455 0.35013754
item043 0.688542983 0.31145702
item044 0.290662804 0.70933720
item045 0.234881989 0.76511801
item048 0.576947540 0.42305246
item049 ...277 total items/rows
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.