RMSEA value in anova and lavTestLRT function

204 views
Skip to first unread message

羅孟婷

unread,
Mar 9, 2023, 4:17:52 AM3/9/23
to lavaan
Hi lavaan group,

I found out that outputs from the anova and lavTestLRT function produce a "RMSEA" value 0.10573 (see below graphs), but was not able to locate information to explain what that is. I check my output, it is not the point estimate of RMSEA nor the upper or lower bound of 90% CI. 

Does anyone know what it is? Thanks!



Screenshot 2023-03-09 170953.png

Screenshot 2023-03-09 171214.png
Screenshot 2023-03-09 170953.png

Shu Fai Cheung

unread,
Mar 9, 2023, 7:10:07 PM3/9/23
to lav...@googlegroups.com
I believe it is simply RMSEA computed using the chi-square difference and model df difference:

library(lavaan)
#> This is lavaan 0.6-14
#> lavaan is FREE software! Please report any bugs.

# Adapted the example of cfa()
HS.model.1 <- ' visual  =~ x1 + x2 + x3
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 '
fit.1 <- cfa(HS.model.1, data = HolzingerSwineford1939)
HS.model.2 <- ' visual  =~ x1 + x2 + x3
                textual =~ x4 + x5 + x6
                speed   =~ x7 + x8 + x9
                visual ~~ 0 * textual + 0 * speed
                textual ~~ 0 * speed'
fit.2 <- cfa(HS.model.2, data = HolzingerSwineford1939)

(lrt <- lavTestLRT(fit.2, fit.1))
#>
#> Chi-Squared Difference Test
#>
#>       Df    AIC    BIC   Chisq Chisq diff   RMSEA Df diff Pr(>Chisq)    
#> fit.1 24 7517.5 7595.3  85.305                                          
#> fit.2 27 7579.7 7646.4 153.527     68.222 0.26875       3  1.026e-14 ***
#> ---
#> Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

# Compute RMSEA using Chi-square difference and the df difference
rmsea_self <- sqrt(((lrt[2, "Chisq"] - lrt[1, "Chisq"]) - 3) / (3 * nobs(fit.2)))
rmsea_self
#> [1] 0.268752

# The RMSEA from the output of lavTestLRT()
rmsea_lrt <- lrt[2, "RMSEA"]
rmsea_lrt
#> [1] 0.268752

# Check if they are the same
all.equal(rmsea_self, rmsea_lrt)
#> [1] TRUE

This is a new measure introduced in 0.6-13 (https://lavaan.ugent.be/history/dot6.html).
Also see:

How it was computed:

Hope this helps.

Regards,
Shu Fai Cheung (張樹輝)


--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/9ca8616e-5e80-45c1-8b9b-2e6f497e28den%40googlegroups.com.

羅孟婷

unread,
Mar 9, 2023, 7:18:37 PM3/9/23
to lavaan
This is extremely helpful!!! Thank you for providing relevant resources as well. 

shufai...@gmail.com 在 2023年3月10日 星期五上午8:10:07 [UTC+8] 的信中寫道:

Terrence Jorgensen

unread,
Mar 14, 2023, 9:32:17 AM3/14/23
to lavaan
Savalei, V., Brace, J. C., & Fouladi, R. T. (2023). We need to change how we compute RMSEA for nested model comparisons in structural equation modeling. Psychological Methods. https://doi.org/10.1037/met0000537

Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

Shu Fai Cheung (張樹輝)

unread,
Mar 14, 2023, 9:45:38 AM3/14/23
to lavaan
Thanks a lot for the reference!

-- Shu Fai

羅孟婷

unread,
Mar 14, 2023, 8:32:54 PM3/14/23
to lav...@googlegroups.com
Thanks!

Shu Fai Cheung (張樹輝) <shufai...@gmail.com> 於 2023年3月14日 週二 下午9:45寫道:
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/bTa8_hDZKi8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/fab6525a-b836-4af1-80a9-813409d867ccn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages