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 | gen_IRT_plot(
data,
IRT_fun = "Information",
theta = c(-4, 4),
IRTParCols,
IRTModelCol,
IRTScale = 1,
groupByCol = NULL,
colorByCol = NULL,
showLegend = T,
opacity = 0.6
)
|
data |
a data frame contains IRT parameters and categorical attributes. |
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. |
groupByCol |
a column that groups the data for IRT functions and assigns plot colors |
colorByCol |
a column that uses for colors. To use colorByCol, the groupByCol must not be NULL and the number of unique values in groupByCol must be more than the number of unique values in colorByCol. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.