Hello everyone,
I recently discovered the twostage() function which does exactly what I would need for my analysis. Unfortunately, I can't seem to make it adopt robust hubert white standard errors. So I specify the following model:
out1 <- cfa.2stage(model = model,
data = logbat,
aux = c("age","sex"),
se = "robust.huber.white")
summary(out1@target, standardized = TRUE)
it gives me this output
Parameter Estimates:
Information Observed
Standard Errors Standard
Don't really understand what I am doing wrong here.
In the description of the function it says:
The summary function prints the same information from the show method, but also provides (and returns) the output of parameterEstimates(object@target, ...) with corrected SEs, test statistics, and confidence intervals (semTools p.137)
Also here are two questions which I am trying to understand:
The description of the function also says this:
The twostage object contains 3 fitted lavaan models (saturated, target/hypothesized, and baseline) as well as the names of auxiliary variables. None of the individual models provide the correct model results (except the point estimates in the target model are unbiased). Use the methods in twostage to extract corrected SEs and test statistics.
1) So which methods do I exactly use to get the "correct" model results?
2) If I call the following fitmeasures function
fitmeasures(out1@target)
npar fmin chisq
25.000 0.034 236.370
df pvalue baseline.chisq
19.000 0.000 6595.360
baseline.df baseline.pvalue cfi
28.000 0.000 0.967
tli nnfi rfi
0.951 0.951 0.947
nfi pnfi ifi
0.964 0.654 0.967
rni logl unrestricted.logl
0.967 -39421.822 -39303.637
aic bic ntotal
78893.643 79047.585 3490.000
bic2 rmsea rmsea.ci.lower
78968.148 0.057 0.051
rmsea.ci.upper rmsea.pvalue rmr
0.064 0.031 0.091
rmr_nomean srmr srmr_bentler
0.091 0.043 0.043
srmr_bentler_nomean srmr_bollen srmr_bollen_nomean
0.048 0.043 0.048
srmr_mplus srmr_mplus_nomean cn_05
0.043 0.048 446.069
cn_01 gfi agfi
535.358 0.999 0.998
pgfi mfi ecvi
0.431 0.969 NA
does it give me reliable output? Because it does look like it would give me reliable output!