Hi.
I'm using semTools to generate results on imputed data and plausible values from those for the first time. I'm running into two problems, which may be linked.
With the syntax:
fitted.cfa.mi <- sem.mi(lavcfasyntax, data=df, m = 3)
I get these warnings:
Warning messages:
1: In amelia.prep(x = x, m = m, idvars = idvars, empri = empri, ts = ts, :
You have a small number of observations, relative to the number, of variables in the imputation model. Consider removing some variables, or reducing the order of time polynomials to reduce the number of parameters.
2: In lav_data_full(data = data, group = group, cluster = cluster, :
lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate
3: In lav_data_full(data = data, group = group, cluster = cluster, :
lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate
#1 I'm aware of. But #2 and #3 don't make sense. When I run varTable(df), the lowest variance in the observed data is 0.178 and the highest is 3.019--clearly not off by a factor of 1000.
When I press on and run:
RT.pv <- plausibleValues(fitted.cfa.mi, nDraws = 3, omit.imps = c("no.conv", "no.se"))
I get:
Error in LAMBDA[ov.y.dummy.ov.idx, ] <- MLIST$beta[ov.y.dummy.lv.idx, :
number of items to replace is not a multiple of replacement length
In addition: Warning messages:
1: In lav_data_full(data = data, group = group, cluster = cluster, :
lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate
2: In lav_data_full(data = data, group = group, cluster = cluster, :
lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate
trace_back() didn't give me any insight. My guess is whatever is causing the "factor of 1000" issue is making the plausible values generations fail, so there is no result to feed back.
When I use mice instead of amelia in sem.mi(), and everything else identical, I get no errors or warnings at the sem.mi() step, but still the "Error in LAMBDA..." at the plausibleValues() step (and no warnings).
Help?
Thanks,
Pat
--
Patrick S. Malone, PhD
Sr Research Statistician, FAR HARBΦR
This
message may contain confidential information; if you are not the
intended recipient please notify the sender and delete the message.