Skip to contents

Constructs an item pool adjacency matrix. For an item pool with N items, this is an NxN matrix. The diagonal elements contain the number of times an item has been exposed. The off-diagonal elements contain the number of times the pair of items has been exposed to the same respondent. In general, this function is never called directly, but instead called within cat_simulation() calls.

Usage

construct_adj_mat(resp_cur, theta_tru, diff_tru)

Arguments

resp_cur

A long-form dataframe of observed item responses.

theta_tru

A vector of true respondent abilities.

diff_tru

A vector of true item difficulties.

Value

An adjacency matrix of type matrix.