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

Description Usage Arguments Value

View source: R/generate_responses.R

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

1
generate_item_responeses_gpcm(theta, weightsMatrix, intercepts)

Arguments

theta

matrix of latent traits' values

weightsMatrix

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

intercepts

intercept parameters

Value

vector of responses on item


rstyles documentation built on July 23, 2021, 5:07 p.m.