# NOT RUN {
# }
# NOT RUN {
m1 <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
m2 <- ' f1 =~ x1 + x2 + x3 + x4
f2 =~ x5 + x6 + x7 + x8 + x9 '
m3 <- ' visual =~ x1 + x2 + x3
textual =~ eq*x4 + eq*x5 + eq*x6
speed =~ x7 + x8 + x9 '
fit1 <- cfa(m1, data = HolzingerSwineford1939)
fit1a <- cfa(m1, data = HolzingerSwineford1939, std.lv = TRUE) # Equivalent to fit1
fit2 <- cfa(m2, data = HolzingerSwineford1939) # Not equivalent to or nested in fit1
fit3 <- cfa(m3, data = HolzingerSwineford1939) # Nested in fit1 and fit1a
tests <- net(fit1, fit1a, fit2, fit3)
tests
summary(tests)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab