View source: R/core_functions.R
computeResponseProbability | R Documentation |
computeResponseProbability
is an internal function for computing response probability from a set of item parameters.
computeResponseProbability(ipar, model_id, theta_grid)
ipar |
a |
model_id |
the column name for item models. |
theta_grid |
theta values to compute probability values at. |
computeResponseProbability
returns an item-wise list of probability matrices.
ipar <- PROsetta:::extractAnchorParameters(data_asq, as = "AB")
theta_q <- seq(-4, 4, .1)
p <- PROsetta:::computeResponseProbability(ipar, "item_model", theta_q)
plot(
0, 0, type = "n", xlim = c(-4, 4), ylim = c(0, 1),
xlab = "Theta", ylab = "Response probability"
)
lines(theta_q, p[[1]][, 1])
lines(theta_q, p[[1]][, 2])
lines(theta_q, p[[1]][, 3])
lines(theta_q, p[[1]][, 4])
lines(theta_q, p[[1]][, 5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.