Usimulate: Simulate a test or scale data matrix.

View source: R/Usimulate.R

UsimulateR 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

  Usimulate(theta.pop, WfdList)

Arguments

theta.pop

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

WfdList

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 WfdList is a named list containing information computed during the analysis. These named lists contain these objects:

Wfd:

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.

Wbin:

A matrix containing surprisal values at each bin.

Pmatfine:

A matrix of probabilities over a fine mesh.

Wmatfine:

A matrix of surprisal values over a fine mesh.

DWmatfine:

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

D2Wmatfine:

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.

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

http://testgardener.azurewebsites.net


TestGardener documentation built on June 27, 2022, 1:05 a.m.