Learn R Programming

REQS (version 0.8-13)

call.eqs: 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)

Value

Returns TRUE is the estimation was succesfully and FALSE otherwise.

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

Author

Patrick Mair, Eric Wu

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.

References

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

See Also

read.eqs, run.eqs

Examples

Run this code

if (FALSE) {
##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")
}

Run the code above in your browser using DataLab