Error in FUN(X[[1L]], ...) :
dims [product 400] do not match the length of object [0]M
my question is whether lavaan.survey will apply different weights in each data set as it should in this case (i.e., the w vector corresponding to the propensity score matching in this imputed data set)?
do I need to apply:
library("mitools")
liss.implist <- imputationList(liss.implist)
I find that the resulting object is not as easy to manipulate
This problem was due to a bug with the combination multiple group/multiple imputation. It has been fixed in a new development version 1.1.1 (on GitHub).
Factor scores for this multiple imputation/multiple group growth analysis, for the moment, can be obtained using this small trick:
fit.mi <- growth.mi(modelbase, data=DataImpList, group="grouping")
...
fit.growth <- growth(modelbase, data=Demo.growth1, group="grouping")
design.mi <- svydesign(ids = ~1, weights = ~w, data = DataImpList)
fit.survey <- lavaan.survey(fit.growth, design.mi)
fit.survey@Data <- fit.mi@Data # small trick to make predict work
predict(fit.survey) # gives factor scores for each group