Description Usage Arguments Value
This function looks at a directory, identifies all the pfiles in the directory based on a common string pattern, and returns a list with all person files (i.e., each element of the list represents a different pfile). Alternatively, a string vector of files to read in can be supplied. Note that this function assumes standard .txt files. For more information on Winsteps item files, see http://www.winsteps.com/winman/pfile.htm.
1 2 3 4 5 6 | batch.pfile(demNameL = NULL, dir = getwd(), files = NULL, pat = "Pfile",
r2WinstepsFile = TRUE, varWidths = c(1, 5, 8, 3, 8, 9, 7, 7, 7, 7, 7, 7,
7, 7, 6, 6, 6, 6, 8), pFileNames = c("Dropped", "Entry", "Theta", "Status",
"Count", "RawScore", "SE", "Infit", "Infit_Z", "Outfit", "Outfit_Z",
"Displacement", "PointMeasureCorr", "Weight", "ObservMatch", "ExpectMatch",
"PointMeasureExpected", "RMSR", "WMLE"))
|
demNameL |
Optional list containing the names of the demographic variables for pfiles. Must equal the number of demographic fields being read into R. |
dir |
Directory where pfiles are saved. Defaults to current working directory. |
files |
Optional character vector of the names of the person files to be read into R. Note that only the names of the files (not the extension) are neccessary. The function assumes .txt files. |
pat |
A common character string in all item files. Only used if
|
r2WinstepsFile |
Logical. Was the |
varWidths |
Width of the person file columns. These widths correspond to
all but the final person demographic columns. If you are using the current
version of Winsteps, and have not requested any additional columns be
represented in the item file, these shouldn't need to be changed. Older
versions of Winsteps (e.g., 3.6.8) may need the following widths |
pFileNames |
The column names for the person files being read in. These
correspond to the names of all but the person variable names. Note that
the |
List of person files, with each element of the list representing a separate person file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.