rsem.lavaan: Conduct robust SEM analysis using lavaan

Description Usage Arguments Details Author(s) References See Also Examples

Description

Conduct robust SEM analysis using lavaan

Usage

1
rsem.lavaan(dset, model, select,  varphi=.1, max.it=1000)

Arguments

dset

A data matrix or a data frame

select

Variables to be seleted for SEM analysis. If omitted, all variables in the data set will be used.

model

The model using lavaan syntax

varphi

Proportion of data to be down-weighted. Default is 0.1.

max.it

Maximum number of iterations for EM. Default is 1000

Details

This function will run the robust analysis and output results.

Author(s)

Ke-Hai Yuan and Zhiyong Zhang

References

Yuan, K.-H., & Zhang, Z. (2012). Robust Structural Equation Modeling with Missing Data and Auxiliary Variables. Psychometrika, 77(4), 803-826.

See Also

rsem.pattern, rsem.emmusig, rsem.Ascov

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 data(mardiamv25)
 names(mardiamv25)<-paste('V', 1:5, sep='')
 
 fa.model<-'f1 =~ V1 + V2
f2 =~ V4 + V5 
f1 ~ 1
f2 ~ 1
V1 ~0*1
V2 ~0*1
V4 ~0*1
V5 ~0*1'

 analysis<-rsem.lavaan(mardiamv25, fa.model, c(1,2,4,5))


Search within the rsem package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.