
Last chance! 50% off unlimited learning
Sale ends in
This is the function to carry out all analysis.
rsem(dset, select, EQSmodel, moment=TRUE, varphi=.1, st='i', max.it=1000,
eqsdata='data.txt', eqsweight='weight.txt', EQSpgm="C:/Progra~1/EQS61/WINEQS.EXE",
serial="1234")
If EQSmodel
is not supplied
Information for SEM analysis including estimated means, covariance matrix and their sandwich type covariance matrix in the order of mean first and then covariance matrix.
Information related to missing data pattern
Results from expectation robust algorithm
Covariance matrix
If EQSmodel
is supplied,
Information for SEM analysis including estimated means, covariance matrix and their sandwich type covariance matrix according to the requirement of EQS.
In addition, the following model parameters are from EQS
Fit indices and associated p-values
Parameter estimates
All information from REQS
A data matrix or a data frame
Variables to be seleted for SEM analysis. If omitted, all variables in the data set will be used.
With mean structure. For covariance only, set moment=FALSE.
The input file for EQS. If omitted, only the first-stage analysis will be conducted.
Proportion of data to be down-weighted. Default is 0.1.
Maximum number of iterations for EM. Default is 1000
Starting values for EM algorithm. The default is 0 for mean and I for covariance. Alternative, the starting values can be estimated according to MCD.
Data file name used in EQS
File name for weight matrix
The path to the installed EQS program
The serial no of EQS
Ke-Hai Yuan and Zhiyong Zhang
This function will run the robust analysis and output results.
Ke-Hai Yuan and Zhiyong Zhang (2011) Robust Structural Equation Modeling with Missing Data and Auxiliary Variables
rsem.pattern
, rsem.emmusig
, rsem.Ascov
if (FALSE) {
## an example
## to use eqs, first load the package semdiag
library(semdiag)
data(mardiamv25)
analysis<-rsem(mardiamv25, c(1,2,4,5), 'eqsinput.eqs')
}
Run the code above in your browser using DataLab