View source: R/cat_sim_helper_functions.R
summary.cat_output | R Documentation |
This function summarizes a list consist of cat_output objects. It returns a summary data frame of the CAT simulation.
## S3 method for class 'cat_output' summary( object, ..., cols = c("examinee_id", "true_ability", "est_ability", "se", "test_length") )
object |
This is a cat_output object or a list object containing elements that are "cat_output" class. |
... |
Additional arguments. |
cols |
The variables that will be included in the summary. There should be at least one column. Available columns are:
|
This function returns a summary data frame of adaptive tests. Each row will represent a different adaptive test.
Emre Gonulates
cat_sim
n <- 100 # number of items ip <- generate_ip(n = n, content = sample(c("Algebra", "Arithmetic", "Geometry"), n, replace = TRUE)) cd <- create_cat_design(ip = ip, next_item_rule = 'mfi', termination_rule = 'max_item', termination_par = list(max_item = 10)) cat_data <- cat_sim(true_ability = rnorm(5), cd = cd) summary(cat_data) # Get only selected columns summary(cat_data, cols = c("examinee_id", "true_ability", "est_ability", "bias")) summary(cat_data, cols = c("examinee_id", "true_ability", "est_ability", "mean_qip", "median_qip", "min_qip"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.