Generate responses that can be used for the Thurstonian IRT model.
simulate_thirt_resp(gamma, items, persons)a data.frame of length [total binary outcomes] with two variables:
variable pair of the format i-j for item pair ij
variable gamma for threshold parameters
a data.frame of length [total items] with five variables:
variable item of the format i for item number i,
variable block of the format b for block number b,
variable dim of the format d for dimension number d,
variable lambda for loadings,
variable psisq for uniqueness,
variable dim for dimensions
a data.frame of length [number of people] with variables:
variable person of the format p for person number p,
variables named theta_d for dimension number d.
a list with:
(1) data.frame items indicating items, blocks, and dimensions and
(2) data.frame resp indicating people, blocks, response numbers, and response sequences.
if (FALSE) {
set.seed(202106)
params <- simulate_thirt_params()
do.call(simulate_thirt_resp, params)
}