call.eqs {REQS} | R Documentation |
This function calls an EQS script file (.eqs) and executes it.
call.eqs(EQSpgm, EQSmodel, serial, Rmatrix = NA, datname = NA, LEN = 2000000)
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 integer value |
Rmatrix |
Optional matrix argument if data or covariances are stored in R |
datname |
If data is specified, a filename (string) must be provided for saving the data in text format (blank separated; see details) |
LEN |
Integer containing number of working array units. By default, it is 2000000 8 bytes units |
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.
Returns an integer whether estimation was succesfully (value of 0) or not (value of 1).
Patrick Mair, Eric Wu
Bentler, P. M. (1995). EQS Program Manual. Encino, CA: Multivariate Software Inc.
##not executable, valid serial number has to be provided ##res <- call.eqs(EQSpgm = '"C:/Program Files/EQS61/WINEQS"', EQSmodel = "c:/eqs61/examples/manul7.eqs", serial = 1234)