Learn R Programming

REQS (version 0.8-13)

read.eqs: Import of EQS outputs into R

Description

This function reads EQS output files (.ets, .CBK and .ETP) into R and stores the results as objects.

Usage

read.eqs(file)

Value

Returns a list with the following objects:

model.info

General model information

pval

p-values for various test statistics

fit.indices

Variuos fit indices

model.desc

Descriptive measures

Phi

Phi matrix

Gamma

Gamma matrix

Beta

Beta matrix

par.table

Parameter table (with standard errors)

sample.cov

Sample covariance matrix

sigma.hat

Model covariance matrix

inv.infmat

Inverse information matrix

rinv.infmat

Robust inverse information matrix

cinv.infmat

Corrected inverse information matrix

derivatives

First derivatives

moment4

Matrix with 4th moments

ssolution

Standardized elements

Rsquared

R-squared measures

fac.means

Factor means

var.desc

Descriptive measures for the variables (univariate statistics)

indstd

Independent variable standardization vector

depstd

Dependent variable standardization vector

Arguments

file

The name (string) of the .ets file or the full path which the data are to be read from. If it does not contain an absolute path, the file name is relative to the current working directory, 'getwd()'. A .CBK and .ETP file have to be of the same name and in the same directory.

Author

Patrick Mair, Eric Wu

Details

The value list below provides objects for the full EQS output. If in EQS some objects are not computed, the corresponding values in R are NA.

References

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

See Also

call.eqs, run.eqs

Examples

Run this code

if (FALSE) {
##not executable
eqsout <- read.eqs("c:/home/user/eqs/eqsfile.ets")
}

Run the code above in your browser using DataLab