generate_item_responses_sqn: Internals: simulating responding to item in a 'sequential'...

Description Usage Arguments Value Limitations See Also

View source: R/generate_responses.R

Description

Function generates responses 'sequentially', i.e. using IRTree approach. It goes through consecutive columns of a scoring matrix, calling generate_item_responeses_gpcm to get responses at a given node of a tree and the recursively calls itself on subsets of observations with a given response with reduced scoring matrix.

Usage

1
2
3
4
5
6
7
8
generate_item_responses_sqn(
  theta,
  scoringMatrix,
  slopes,
  intercepts,
  editResponse = NULL,
  decidingOnPreviousResponse = FALSE
)

Arguments

theta

matrix of latent traits' values

scoringMatrix

matrix describing scoring patterns on each latent trait

slopes

vector of slope parameters of each trait

intercepts

intercept parameters

editResponse

optional function returning scoring matrix that should be used instead that provided by scoringMatrix; this should be function accepting two arguments: response - generated response (by the model described with the first column of the scoringMatrix) that is supposed to be edited and scoringMatrix - current scoring matrix (to be replaced)

decidingOnPreviousResponse

logical value indicating whether first column of provided scoring matrix describes making decision whether to respond on the basis of responses to previous items or not (in this first case negative choice shouldn't reduce number of rows in a response matrix)

Value

vector of responses on item

Limitations

Because function internally relies on calling generate_item_responeses_gpcm, no normal ogive models can be used (this may be changed in the future versions).

See Also

link{generate_test_responses}, generate_item_responses_sml, generate_item_responeses_gpcm


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