View source: R/generateHelpers.R
perturbDelta | R Documentation |
When probabilities are perturbed, the item difficulties may need to be updated to be location where p = 0.5
perturbDelta(myAbilities, myItems, myProbs)
myAbilities |
A matrix of perspon abilities. |
myItems |
A vector of item deltas. |
myProbs |
A matrix of response probabilities from n persons * i items. |
A matrix.
myAbilities <- rnorm(1000, 0, 1)
myItems <- runif (10, -2, 3)
myExProbs <- matrix(rnorm(100, 0, 1), 10, 10)
myExPerturb <- list(data.frame(item = 1, type = "flat", pivot = 0.5, factor = 25))
myProbs <- perturbProbs(myProbs = myExProbs, perturbP = myExPerturb)
myPerturbDelta <- perturbDelta(myAbilities = myAbilities, myItems = myItems, myProbs = myProbs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.