public class ItemResponseSimulator
extends java.lang.Object
| Constructor and Description |
|---|
ItemResponseSimulator(double[] theta,
ItemResponseModel[] irm)
Allows users to provide their own array of examinee ability values and item response models.
|
ItemResponseSimulator(int nPeople,
ItemResponseModel[] irm)
Allows users to specify the number of examinee ability parameters that will be drawn from
a standrad normal distribution.
|
| Modifier and Type | Method and Description |
|---|---|
byte[][] |
generateData()
Creates a two-dimensional array of item responses.
|
void |
generateData(java.lang.String outputFile,
boolean includeID,
boolean includeHeader)
Generates a comma separated file (CSV file) of item responses.
|
void |
generateData(java.lang.String path,
java.lang.String baseName,
boolean includeID,
boolean includeHeader,
int replications)
Creates multiple CSV files of item response data.
|
public ItemResponseSimulator(double[] theta,
ItemResponseModel[] irm)
theta - an array of examinee ability parameters.irm - an array of item response models.public ItemResponseSimulator(int nPeople,
ItemResponseModel[] irm)
nPeople - number of examinee ability parameter to create.irm - an array of item response models.public byte[][] generateData()
public void generateData(java.lang.String outputFile,
boolean includeID,
boolean includeHeader)
throws java.io.IOException
outputFile - complete path and file name of output fileincludeID - include an examinee ID number in the first column if true. Omits the ID if false.includeHeader - if true will include variable names in first row of CSV file.java.io.IOExceptionpublic void generateData(java.lang.String path,
java.lang.String baseName,
boolean includeID,
boolean includeHeader,
int replications)
throws java.io.IOException
path - location where files will be storedbaseName - a base name for the CSV files. The will be appended to the path and a unique
string will be added to the end.includeID - include an examinee ID number in the first column if true. Omits the ID if false.includeHeader - if true will include variable names in first row of CSV file.replications - number of replications (and number of data files) to createjava.io.IOException