I would like to know if it is possible to create a new variable after multiple imputation by using mice or Amelia and what would be the function.
for (m in 1:length(imps)) {
imps[[m]]$new.variable <- rowSums(imps[[m]][c("item1","item2","item3")])
}
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.