View source: R/generateHelpers.R
simplef | R Documentation |
returns expected score at a given value of theta.
simplef(theta, i_params)
theta |
a scalar value of theta. |
i_params |
an item design matrix that is of size response categories (k) by three. The three columns are:
|
a double - the expected score at theta.
myTheta <- 0
myDelta <- 1.5
k <- 3
a <- 1
itemParamX <- seq(0, k-1, 1)
itemParamD <- rep(myDelta, k)
itemParamT <- c(0, -0.5, 0.5)
itemParamA <- rep(a, k)
itemParam <- cbind(itemParamX, itemParamD, itemParamT, itemParamA)
colnames(itemParam)<- c("x", "d", "t", "a")
myExpect <- simplef(myTheta, itemParam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.