chcemat_simulate: Simulate a test or scale data matrix.

View source: R/chcemat_simulate.R

chcemat_simulateR Documentation

Simulate a test or scale data matrix.

Description

Used in dataSimulation, this function sets up an N by n matrix of index values that specify the index of the option chosen by an examinee or respondent for a specific question.

Usage

  chcemat_simulate(index.pop, SfdList)

Arguments

index.pop

A vector containing population score index values at which data are to be simulated.

SfdList

A numbered list object produced by a TestGardener analysis of a test. Its length is equal to the number of items in the test or questions in the scale. Each member of SfdList is a named list containing information computed during the analysis. These named lists contain these objects:

Sfd:

A functional data object containing the M surprisal curves f. or a question.

M:

The number of options.

Pbin:

A matrix containing proportions at each bin.

Sbin:

A matrix containing surprisal values at each bin.

Pmatfine:

A matrix of probabilities over a fine mesh.

Smatfine:

A matrix of surprisal values over a fine mesh.

DSmatfine:

A matrix of the values of the first derivative of surprisal curves over fine mesh.

D2Smatfine:

A matrix of the values of the second derivative of surprisal curves over fine mesh.

Details

For each question and each examinee a vector of random multinomial integer values is generated using the probability transforms of the surprisal curves and the examinee's score index value.

Value

An N by n matrix of integer index values.

References

Ramsay, J. O., Li J. and Wiberg, M. (2020) Full information optimal scoring. Journal of Educational and Behavioral Statistics, 45, 297-315. s

Ramsay, J. O., Li J. and Wiberg, M. (2020) Better rating scale scores with information-based psychometrics. Psych, 2, 347-360.


TestGardener documentation built on Nov. 24, 2023, 5:08 p.m.