calculate_exposure_rates: Calculate exposure rate of items for CAT

Description Usage Arguments Value Author(s) See Also Examples

View source: R/cat_sim_helper_functions.R

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

1
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

1
2
3
4
5
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. 9, 2021, 9:07 a.m.