calculate_exposure_rates: Calculate exposure rate of items for CAT

View source: R/cat_sim_helper_functions.R

calculate_exposure_ratesR Documentation

Calculate exposure rate of items for CAT

Description

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.

Usage

calculate_exposure_rates(cat_sim_output, cd = NULL, item_ids = NULL)

Arguments

cat_sim_output

This is a list object containing elements that are "cat_output" class.

cd

A cat_design object that is created by function create_cat_design.

item_ids

A vector of Item (or Testlet) ids in the item pool.

Value

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.

Author(s)

Emre Gonulates

See Also

cat_sim

Examples

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)


irt documentation built on Nov. 10, 2022, 5:50 p.m.