View source: R/generate_responses.R
generate_item_responeses_gpcm | R Documentation |
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
).
generate_item_responeses_gpcm(theta, weightsMatrix, intercepts)
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 |
a vector of responses on item
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.