Description Usage Arguments Value References Examples
View source: R/lav_residuals.R
‘lavResiduals’ provides model residuals and standardized residuals from a fitted lavaan object, as well as various summaries of these residuals.
The ‘residuals()’ (and ‘resid()’) methods are just shortcuts to this function with a limited set of arguments.
1 2 3 4 5 
object 
An object of class 
type 
Character.
If 
custom.rmr 

se 
Logical. If 
zstat 
Logical. If 
summary 
Logical. If 
h1.acov 
Character. If 
add.type 
Logical. If 
add.labels 
If 
add.class 
If 
drop.list.single.group 
If 
maximum.number 
Integer. Only used if 
output 
Character. By default, 
If drop.list.single.group = TRUE
, a list of (residualized) summary
statistics, including type, standardized residuals, and summaries. If
drop.list.single.group = FALSE
, the list of summary statistics is nested
within a list for each group.
Bentler, P.M. and Dijkstra, T. (1985). Efficient estimation via linearization in structural models. In Krishnaiah, P.R. (Ed.), Multivariate analysis  VI, (pp. 9–42). New York, NY: Elsevier.
Ogasawara, H. (2001). Standard errors of fit indices using residuals in structural equation modeling. Psychometrika, 66(3), 421–436. doi:10.1007/BF02294443
MaydeuOlivares, A. (2017). Assessing the size of model misfit in structural equation models. Psychometrika, 82(3), 533–558. doi:10.1007/s1133601695527
Standardized Residuals in Mplus. Document retrieved from URL http://www.statmodel.com/download/StandardizedResiduals.pdf
1 2 3 4 5 6  HS.model < ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
fit < cfa(HS.model, data = HolzingerSwineford1939)
lavResiduals(fit)

This is lavaan 0.63
lavaan is BETA software! Please report any bugs.
$type
[1] "cor.bentler"
$cov
x1 x2 x3 x4 x5 x6 x7 x8 x9
x1 0.000
x2 0.030 0.000
x3 0.008 0.094 0.000
x4 0.071 0.012 0.068 0.000
x5 0.009 0.027 0.151 0.005 0.000
x6 0.060 0.030 0.026 0.009 0.003 0.000
x7 0.140 0.189 0.084 0.037 0.036 0.014 0.000
x8 0.039 0.052 0.012 0.067 0.036 0.022 0.075 0.000
x9 0.149 0.073 0.147 0.048 0.067 0.056 0.038 0.032 0.000
$cov.z
x1 x2 x3 x4 x5 x6 x7 x8 x9
x1 0.000
x2 1.996 0.000
x3 0.997 2.689 0.000
x4 2.679 0.284 1.899 0.000
x5 0.359 0.591 4.157 1.545 0.000
x6 2.155 0.681 0.711 2.588 0.942 0.000
x7 3.773 3.654 1.858 0.865 0.842 0.326 0.000
x8 1.380 1.119 0.300 2.021 1.099 0.641 4.823 0.000
x9 4.077 1.606 3.518 1.225 1.701 1.423 2.325 4.132 0.000
$summary
srmr srmr.se srmr.z srmr.pvalue usrmr usrmr.se
cov 0.065 0.006 6.063 0 0.058 0.01
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.