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 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

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 an integer whether estimation was succesfully (value of 0) or not (value of 1).

Author(s)

Patrick Mair, Eric Wu

References

Bentler, P. M. (1995). EQS Program Manual. Encino, CA: Multivariate Software Inc.

See Also

read.eqs, run.eqs

Examples


##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)


[Package REQS version 0.7-2 Index]