plot(x = item(b = 0.3, D = 1, model = "1PL"))
itm1 <- item(a = 1.2, b = 0.3, c = .2, model = "3PL")
plot(itm1)
plot(item(a = 1.2, b = 0.3, c = .2, d = .89, D = 1))
# Use base R graphics for the plot
plot(itm1, base_r_graph = TRUE)
# Plot Graded Response Model
itm2 <- item(a = 0.902, b = c(-1.411, 0.385, 1.79), model = "GRM")
plot(itm2)
plot(itm2, category_names = c("Strongly Disagree", "Disagree", "Agree",
"Strongly Agree"))
plot(itm2, category_names = c("Strongly Disagree", "Disagree", "Agree",
"Strongly Agree"), base_r_graph = TRUE)
# A Graded Response Model item with two categories (i.e. 2PL item):
itm3 <- item(a = 0.8, b = 1, model = "GRM")
plot(itm3, category_names = c("Incorrect", "Correct"),
legend_title = "Response")
if (FALSE) {
# Change the y-axis label (Only available if 'ggplot2' is installed)
# plot(itm3, suppress_plot = TRUE) + ylab("New Label")
}
Run the code above in your browser using DataLab