View source: R/cat_sim_helper_functions.R
calculate_exposure_rates | R Documentation |
This function calculates the exposure rate of items for a
CAT. It takes a list of cat_output
objects and cat_design
object and returns exposure rate of each item.
calculate_exposure_rates(cat_sim_output, cd = NULL, item_ids = NULL)
cat_sim_output |
This is a list object containing elements that are "cat_output" class. |
cd |
A |
item_ids |
A vector of Item (or Testlet) ids in the item pool. |
This function returns a numeric vector of each item's exposure rate where the names of each exposure rate value is the item's id.
Emre Gonulates
cat_sim
cd <- create_cat_design(ip = generate_ip(n = 30), next_item_rule = 'mfi',
termination_rule = 'max_item',
termination_par = list(max_item = 10))
cat_data <- cat_sim(true_ability = rnorm(10), cd = cd)
calculate_exposure_rates(cat_data, cd = cd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.