call.eqs {REQS} | R Documentation |
Call EQS from R
Description
This function calls an EQS script file (.eqs) and executes it.
Usage
call.eqs(EQSpgm, EQSmodel, serial, Rmatrix = NA, datname = NA, LEN = 2000000)
Arguments
EQSpgm |
String containing path including program name where EQS is located (see details) |
EQSmodel |
String containing path where .eqs script file is located (see details) |
serial |
EQS serial number as character |
Rmatrix |
Optional matrix argument if data or covariances are stored in R |
datname |
If |
LEN |
Integer containing number of working array units. By default, it is 2000000 8 bytes units |
Details
If the path in EQSpgm
and EQSmodel
contains a blank, single quotes and double quotes
are required in argument. See EQSpgm
argument in examples. The last statement in the EQSpgm
argument refers
to the name of the executable program file. Under Windows it is ".../WINEQS"
(referring to WINEQS.exe), under Mac ".../MACEQS"
and
under Linux ".../EQS"
. When specifying the path, use slash instead of backslash.
The .ETS, .CBK and .ETP files are written in the directory where the .eqs file is located. Unless another path is provided within in the .eqs script file.
The argument datname
must match with the input data specified in the corresponding .eqs file.
Value
Returns TRUE
is the estimation was succesfully and FALSE
otherwise.
Author(s)
Patrick Mair, Eric Wu
References
Bentler, P. M. (1995). EQS Program Manual. Encino, CA: Multivariate Software Inc.
See Also
Examples
## Not run:
##not executable, valid serial number has to be provided
res <- call.eqs(EQSpgm = "C:/Program Files/EQS61/WINEQS.EXE",
EQSmodel = "c:/eqs61/examples/manul7.eqs", serial = "1234")
## End(Not run)