On 5/18/20 9:18 PM, k stol wrote:
> To be sure: while it could be done for DWLS and WLS using the options
> you mentioned (WLS.V and NACOV), I understand that the NACOV option
> would not be possible for MLM.
It is possible, if you have access to an estimate of the NACOV matrix.
This is (N times) the asymptotic variance matrix of the sample
statistics. If you don't have it, you can't use it. To compute an
estimate of it, you need the full dataset.
This is an example:
library(lavaan)
HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
fit <- cfa(HS.model, data = HolzingerSwineford1939, estimator = "MLM")
fit
# using sample statistics only
S <- cov(lavInspect(fit, "data"))
NACOV <- lavInspect(fit, "Gamma")
fit2 <- cfa(HS.model, sample.cov = S, sample.nobs = 301, NACOV = NACOV,
estimator = "MLM")
Yves.