cd <- create_cat_design(ip = generate_ip(n = 30), next_item_rule = 'mfi',
termination_rule = 'max_item',
termination_par = list(max_item = 10))
cat_output <- cat_sim(true_ability = rnorm(10), cd = cd)
qip_index(cat_output)
# Return result as list elements
qip_index(cat_output, simplify = FALSE)
# Summarize QIP values:
qip_index(cat_output, summary_func = "mean")
qip_index(cat_output, summary_func = "median")
qip_index(cat_output, summary_func = "min")
qip_index(cat_output, summary_func = "max")
qip_index(cat_output, summary_func = "quantile", prob = .25)
qip_index(cat_output, summary_func = "quantile", prob = c(.25, .5, .75))
qip_index(cat_output, summary_func = "quantile", prob = c(.25, .5, .75),
simplify = FALSE)
Run the code above in your browser using DataLab