The code may work (and I don't want to comment on that), but there are
methodological issues with how the whole thing is put together.
1. The survey weights may reflect unequal probabilities of selection,
as well as nonresponse and coverage adjustments. In some projects,
survey statisticians create replicate weights that reflect all of
these adjustments, so that the standard errors that you'd see account
for these. Sometimes, the standard errors would go up, sometimes,
down.
2. Beyond the weights, there are also aspects of stratification,
clustering, and finite population corrections that affect the variance
/ standard errors of the estimates. I pointed out to these earlier in
the thread in my 2015 post. The properly constructed replicate weights
account for these. Without access to the sampling methodology
documentation and supplementary data such as the population totals on
the calibration variables, it is very difficult to get these
adjustments right.
3. Simulating out of the asymptotic distribution out of the estimates
produced by lavaan() is all nice, but it does not really get the
benefits of the bootstrap out of the original data such as more
accurate confidence intervals. It is probably a step in the right
direction, but only about a third of the way. (I am pleasantly
surprised by the results in Preacher and Selig 2012 simulation study,
though.)
4. Taking 20 thousands replicates delivers as much on getting
asymmetry of the mediation effect estimates as it does on uncovering
the biases of the simulation out of the asymptotic distribution of the
original estimates as the method. (No method is unbiased, and
introduces its own errors; 20K is enough to drive the Monte Carlo
sampling errors to oblivion, so that any biases would only be too
obvious.)
-- Stas Kolenikov, PhD, PStat (ASA, SSC) @StatStas
-- Senior Scientist, Abt Associates @AbtDataScience
-- Program Chair (2018), Survey Research Methods Section of the
American Statistical Association
-- Opinions stated in this email are mine only, and do not reflect the
position of my employer
--
http://stas.kolenikov.name
>>
lavaan+un...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "lavaan" group.