Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lisrelMatrix

Extract LISREL matrices from lisrel object.


Description

This function can be used to extract matrices from the output of readLisrel.

Usage

lisrelMatrix(object, matrix, group = 1, type = "est")

Arguments

object

A "lisrel" object obtained by readLisrel.

matrix

Specification of the matrix to be extracted. See details.

group

An integer specifying which group the matrix should be extracted from.

type

Specification of the type of matrix to be extracted.

Details

LisrelToR uses the following names for the model matrices:

LY

Lambda-Y matrix.

PS

Psi matrix.

BE

Beta matrix.

TE

Theta-Epsilon matrix.

TY

Tau-Y matrix.

AL

Alpha matrix.

LX

Lambda-X matrix.

PH

Phi matrix.

GA

Gamma matrix.

TD

Theta-Delta matrix.

TX

Tau-X matrix.

KA

Kappa

ObsCovs

The observed covariance matrix, or a list of such matrices for each group.

ImpCovs

The implied covariance matrix, or a list of such matrices for each group.

Furthermore, lisrelToR uses the following names for matrix types:

est

Parameter estimates

se

Standard errors

t

t-values

parSpec

Parameter numbers

Value

A matrix.

Author(s)

Sacha Epskamp <mail@sachaepskamp.com>

References

Joreskog, K. G., & Sorbom, D. (1996). LISREL 8 user's reference guide. Scientific Software.

See Also

Examples

## Measurment invariance example:
download.file("http://sachaepskamp.com/files/mi1.OUT",modFile <- tempfile(fileext=".OUT"))
Lis <- readLisrel(modFile)

# Extract Lambda-Y for group 2:
lisrelMatrix(Lis,"LY", group = 2)

lisrelToR

Import output from LISREL into R

v0.1.4
GPL-2
Authors
Sacha Epskamp
Initial release
2013-05-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.