Generate responses that can be used for the Thurstonian IRT model.

simulate_thirt_resp(gamma, items, persons)

Arguments

gamma

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

items

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

persons

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.

Value

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.

Examples

if (FALSE) {
set.seed(202106)

params <- simulate_thirt_params()

do.call(simulate_thirt_resp, params)
}