export.GGUM2004 {GGUM} | R Documentation |
Exports data in 'GGUM2004' friendly format
Description
export.GGUM2004
exports the data from R to a text file
according to the format required by 'GGUM2004'
Usage
export.GGUM2004(data, data.file = "data", data.dir = tempdir())
Arguments
data |
The R data matrix to be exported. |
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
|
Details
This function exports the R matrix data
in 'GGUM2004'
(Roberts, Donoghue, & Laughlin, 2000; Roberts et al., 2006) friendly
format. This data file is to be used together with a 'GGUM2004' command
script (or using the GUI itself, of course). 'GGUM2004' may be executed
directly or may be called from R, see run.GGUM2004
.
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.
Author(s)
Jorge N. Tendeiro, tendeiro@hiroshima-u.ac.jp
References
Roberts JS, Donoghue JR, Laughlin JE (2000). “A general item response theory model for unfolding unidimensional polytomous responses.” Applied Psychological Measurement, 24, 3-32.
Roberts JS, Fang H, Cui W, Wang Y (2006). “GGUM2004: A Windows-Based Program to Estimate Parameters in the Generalized Graded Unfolding Model.” Applied Psychological Measurement, 30, 64-65.
Examples
# Generate data:
C <- c(3, 3, 3, 5, 5, 5)
I <- 6
gen <- GenData.GGUM(750, I, C, seed = 125)
# Export data to 'GGUM2004':
export.GGUM2004(gen$data)