generate_item_responeses_gpcm: Internals: calculation of (G)PCM probabilities and drawing...

View source: R/generate_responses.R

generate_item_responeses_gpcmR Documentation

Internals: calculation of (G)PCM probabilities and drawing responses

Description

Computes probabilities of each response using (G)PCM and draws responses. Be aware that for efficiency reasons it assumes that theta and weightsMatrix have the same number and order of columns (unlike generate_item_responses_sqn and generate_item_responses_sml that are used to match theirs arguments theta, scoringMatrix and slopes before passing them to generate_item_responeses_gpcm).

Usage

generate_item_responeses_gpcm(theta, weightsMatrix, intercepts)

Arguments

theta

a matrix of latent traits' values

weightsMatrix

a matrix of slope parameters (being multiplication of a design matrix by discriminations of factors)

intercepts

a vector of intercept parameters

Value

a vector of responses on item


tzoltak/rstyles documentation built on Dec. 4, 2024, 5:16 p.m.