cat_sim | R Documentation |
cat_sim
function simulates computerized adaptive test (CAT) for
one or more simulees. For long simulations, cat_sim_fast
function can be used.
cat_sim(true_ability, cd, verbose = -1)
true_ability |
True ability vector to generate item responses. |
cd |
A |
verbose |
This is an integer that will print the stage of the test.
For example, if the value verbose = 10, a message will be printed at
each tenth iteration of the cat_simulation. Default value is |
If the length of true_ability
vector is one a
"cat_output"
class output will be returned.
This is a list containing following elements:
True ability (theta) value to generate item responses.
A list where each element represent a step of the CAT test. It has following elements:
The estimated ability before the administration of the item.
The standard error of the estimated ability before the administration of the item.
TRUE
if the item belongs to a testlet.
Item-class
object that is administered at
this step.
The simulated response of the simulee for the item
administered at this step using simulee's true_ability
value.
The estimated ability after the administration of the item.
The standard error of the estimated ability after the administration of the item.
If the length of the true_ability
is more than 1, a list of
cat_output
objects will be returned for each value of
true_ability
.
Emre Gonulates
create_cat_design
ip <- generate_ip(n = 50)
# Check the default:
cd <- create_cat_design(ip = ip)
cat_sim(true_ability = rnorm(1), cd = cd)
# Multiple theta, optionally set names to the the vector to give examinee IDs
true_theta <- setNames(c(-2, 0.4, 1.5), c("Jimmy", "Ali", "Mirabel"))
cd <- create_cat_design(
ip = ip,
ability_est_rule = 'ml',
termination_rule = c('min_item', 'min_se', 'max_item'),
termination_par = list(min_item = 10, min_se = .33, max_item = 20))
cat_sim(true_ability = true_theta, cd = cd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.