The supported IRT plots include "Information", "CSEM", "Expected_Percent_Score", "Expected_Raw_Score".
1 2 3 4 5 6 7 8 9 10 11 12 13 | gen_formIRTPlot(
metadata,
formInf,
joinBy,
IRT_fun = "Information",
theta = c(-4, 4),
IRTParCols,
IRTModelCol,
IRTScale = 1,
showLegend = T,
opacity = 0.6,
plotType = c("curve", "")
)
|
metadata |
a data frame contains IRT parameters and categorical attributes |
formInf |
form information in tibble that must contain columns named form_id and item_id |
joinBy |
join for formInf and metadata |
IRT_fun |
one or multiple IRT plot names, which could be "Information", "CSEM", "Expected_Percent_Score", or/and "Expected_Raw_Score". |
theta |
A vector of ability values |
IRTParCols |
A vector of colnames that have the columns required by the IRT model of choice. |
IRTModelCol |
A column that specifies the IRT model for each item. This can also be a single value, which will be recycled. |
IRTScale |
A vector of scaling parameters used in the IRT models. This can also be a single value, which will be recycled. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.