write.GGUM2004 | R Documentation |
write.GGUM2004
creates a 'GGUM2004' command file according
to the test characteristics. The file is saved in the 'GGUM2004' predefined
installation folder.
write.GGUM2004( I, C, cutoff = 2, model = "GGUM", cmd.file = "cmd", data.file = "data", data.dir = tempdir() )
I |
The number of items. |
C |
C is the number of observable response categories minus 1 (i.e., the item scores will be in the set {0, 1, ..., C}). It should either be a vector of I elements or a scalar. In the latter case it is assumed that C applies to all items. |
cutoff |
Either a number or a vector of I elements which defines the cutoff value. Default is 2. |
model |
A string identifying the model. Possible values are "GUM" or "GGUM" (default). |
cmd.file |
A character string defining the name to give to the command file. No file extension is required. |
data.file |
A character string defining the name of the data file. No file extension is required. |
data.dir |
A character string defining the path to the directory where
the data file (possibly exported by function
|
A script file is saved in the directory where 'GGUM2004' is installed.
This function prepares a 'GGUM2004' friendly command script,
which may be used to run the 'GGUM2004' program (Roberts, Donoghue, &
Laughlin, 2000; Roberts et al., 2006). 'GGUM2004' may be executed directly
or may be called from R, see run.GGUM2004
.
By default and for convenience, the command script is saved in the same
directory where the data file resides (data.dir
). By experience, we
noticed that long directory paths (especially if spaces are included) make
'GGUM2004' fail to execute with error file not found
. Therefore, a
good advice is to choose data.dir
wisely (short paths, no spaces).
Observe that this function is optimized for the Windows operating system because 'GGUM2004' is a Windows program.
Sebastian Castro-Alvarez, secastroal@gmail.com
Robertsetal2000GGUM
\insertRefRobertsetal2006GGUM
I <- 6 C <- c(3, 3, 3, 5, 5, 5) write.GGUM2004(I, C, model = "GGUM")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.