# global options for all chunks knitr::opts_chunk$set(echo = FALSE)
A number of libraries are required. This is becasue we will format some objects with our own R markdown.
# Required packages library("conquestr") library("kableExtra")
This is an example of implementation of Item Review Sheets using RMarkdown and conquestr. We will use the default system file, analysis, and plots from the conquestr library. First we can read in the system file (output by ACER ConQuest). Item analysis (itanal) and iteration history are stored in the system file.
# Read default system file mySys <- ConQuestSys() # Read itanal mySys_itanal <- getCqItanal(mySys) # Summary stats are alwasy the last element of the list returned by getCqItanal SumStat <- mySys_itanal[[length(mySys_itanal)]] # internal formatting of itanal mySys_itanalFmt <- fmtCqItanal(mySys_itanal) # iteration history iter_hist <- getCqHist(mySys)
Output from plot files are stored separately in Rout files.
#generate a ICC/MCC plot from an 'ACER ConQuest' Rout file - traditional ICC/MCC plot my_Rout <- ConQuestRout()
There are also helper functions to plot iteration history and Rout files.
# iteration history plot of item parameters iter_hist_plot <- plotCqHist(iter_hist, centre = FALSE, legend = TRUE, params = "Xsi") # ICC plot my_Rout_plot <- plotRout(my_Rout)
Summary Statistics:
SumStat %>% kbl(digits = 2) %>% # could set digits as a global option kable_styling()
Visual summary of convergence
plot(iter_hist_plot)
Item 1 Statistics:
#Item 1 name only mySys_itanal[[1]]$name %>% kbl() %>% kable_styling() #Item 1 table only mySys_itanal[[1]]$table %>% kbl(digits = 2) %>% kable_styling() #Item 1 item corrs only mySys_itanal[[1]]$item_rest_total %>% kbl(digits = 2) %>% kable_styling()
Item 1 ICC:
plot(my_Rout_plot)
Inserting red text for demo purposes.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.