Description Usage Arguments Details Value Author(s) See Also Examples
wcmd
creates a Winsteps command file object. as.wcmd
converts a list to an object of class “wcmd”. read.wcmd
and write.wcmd
read and write command files to and from text files.
1 2 3 4 5 6 7 8 9 10 |
title |
a title for the Winsteps run, as a string |
data |
data set filename |
item1 |
integer, fixed width column number of the first item |
ni |
integer, number of items |
name1 |
integer, fixed width column number of the first character of the person name |
namelen |
integer, number of characters in person name, defaulting to the difference between |
codes |
vector of response codes with default |
csv |
character indicating how output files should be written, as csv ( |
hlines |
character indicating whether or not to include header lines in output files, with default |
tfile |
numeric vector of table numbers to be included in output |
arglist |
optional list of additional arguments to be appended to the command file, where the name of each list element will be pasted into a string with the value of the element, as |
anchor |
optional matrix of item anchor values, with item sequences in column 1 and anchor values in column 2 |
labels |
optional string vector of item labels, to be pasted after the |
extra |
optional vector of additional commands, similar to |
x |
list of arguments to be converted into an object of class “wcmd” |
filename |
path to which the command file will be written, or from which it will be read |
cmd |
command file object to be written |
The Winsteps command file specifies the structure of a persons by items matrix and includes all arguments necessary to run the model. Arguments without defaults, which are currently required in the “wcmd” class, are data
, item1
, ni
, and name1
. Winsteps accepts a variety of arguments and data specification options within the command file and only a selection of these are currently supported by the “wcmd” class, not including those necessary for polytomous models. Thus, for the greatest flexibility, the command file should be written by hand. For details, see the Winsteps manual.
Using write.wcmd
, the command file is written to filename
by separating all arguments and item labels with new lines. As all arguments are read and written as text strings, any argument with integer values such as codes
may also be specified as a string, e.g., codes = "01"
.
The command file can also be used to facilitate reading and writing of data files in R. See read.wdat
and write.wdat
for details.
Returns a command file as a list of arguments
Anthony Albano tony.d.albano@gmail.com
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.