Title: | Import Output from LISREL into R |
---|---|
Description: | This is an unofficial package aimed at automating the import of LISREL output in R. This package or its maintainer is not in any way affiliated with the creators of LISREL and SSI, Inc. |
Authors: | Sacha Epskamp |
Maintainer: | Sacha Epskamp <[email protected]> |
License: | GPL-2 |
Version: | 0.3 |
Built: | 2024-12-19 06:40:31 UTC |
Source: | CRAN |
This is an unofficial package aimed at automating the import of LISREL output in R. This package or its maintainer is not in any way affiliated with the creators of LISREL and SSI, Inc.
Sacha Epskamp ([email protected])
Maintainer: Sacha Epskamp <[email protected]>
github.com/SachaEpskamp/lisrelToR
Print method prints LISREL output file to the console, summary method returns RAM of parameter estimates as given by semPlotModel
from the semPlot
package and plot method calls semPaths
from the semPlot
package.
## S3 method for class 'lisrel' print(x, ...)
## S3 method for class 'lisrel' print(x, ...)
x |
output of |
... |
Not used |
Sacha Epskamp <[email protected]>
lisrel
object.
This function can be used to extract matrices from the output of readLisrel
.
lisrelMatrix(object, matrix, group = 1, type = "est")
lisrelMatrix(object, matrix, group = 1, type = "est")
object |
A |
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. |
LisrelToR
uses the following names for the model matrices:
Lambda-Y matrix.
Psi matrix.
Beta matrix.
Theta-Epsilon matrix.
Tau-Y matrix.
Alpha matrix.
Lambda-X matrix.
Phi matrix.
Gamma matrix.
Theta-Delta matrix.
Tau-X matrix.
Kappa
The observed covariance matrix, or a list of such matrices for each group.
The implied covariance matrix, or a list of such matrices for each group.
Furthermore, lisrelToR
uses the following names for matrix types:
Parameter estimates
Standard errors
t-values
Parameter numbers
A matrix.
Sacha Epskamp <[email protected]>
Joreskog, K. G., & Sorbom, D. (1996). LISREL 8 user's reference guide. Scientific Software.
## Measurment invariance example: modFile <- system.file("extdata", "mi1.OUT", package = "lisrelToR") Lis <- readLisrel(modFile) # Extract Lambda-Y for group 2: lisrelMatrix(Lis,"LY", group = 2)
## Measurment invariance example: modFile <- system.file("extdata", "mi1.OUT", package = "lisrelToR") Lis <- readLisrel(modFile) # Extract Lambda-Y for group 2: lisrelMatrix(Lis,"LY", group = 2)
This function scans LISREL (Joreskog & Sorbom, 1996) output for model matrices and fit indices.
readLisrel(x)
readLisrel(x)
x |
String indicating the location of a LISREL output file. |
LisrelToR
uses the following names for the model matrices:
Lambda-Y matrix.
Psi matrix.
Beta matrix.
Theta-Epsilon matrix.
Tau-Y matrix.
Alpha matrix.
Lambda-X matrix.
Phi matrix.
Gamma matrix.
Theta-Delta matrix.
Tau-X matrix.
Kappa
The observed covariance matrix, or a list of such matrices for each group.
The implied covariance matrix, or a list of such matrices for each group.
Furthermore, lisrelToR
uses the following names for matrix types:
Parameter estimates
Standard errors
t-values
Parameter numbers
A list of class "lisrel"
contaning:
fitIndices |
Fit indices, currently not supported. |
matrices |
A list contaning the model matrices. For each group this list conains a list with for each matrix (using LISREL style naming, see details) a list contaning elements |
variables |
Currently not used. |
Covariances |
A list with elements |
Sacha Epskamp <[email protected]>
Joreskog, K. G., & Sorbom, D. (1996). LISREL 8 user's reference guide. Scientific Software.
## Measurment invariance example: modFile <- system.file("extdata", "mi1.OUT", package = "lisrelToR") Lis <- readLisrel(modFile) # Extract Lambda-Y for group 2: lisrelMatrix(Lis,"LY", group = 2) # Structure of object: str(Lis) # Print full LISREL output to console: print(Lis)
## Measurment invariance example: modFile <- system.file("extdata", "mi1.OUT", package = "lisrelToR") Lis <- readLisrel(modFile) # Extract Lambda-Y for group 2: lisrelMatrix(Lis,"LY", group = 2) # Structure of object: str(Lis) # Print full LISREL output to console: print(Lis)