Dear all,
I have a (probably very basic) question. I am imputing data with the mice
package, using 10 chains. I can then write out the 10 final values of the
chains simply by
name1 <- complete(imp, 1)
:
:
name10 <- complete(imp,10)
Not a big deal, I just wanted to do that in a little loop as follows:
for (i in 1:10){
set[i] <- complete(imp,i)}
Yet that doesn't work, I also tried other things like:
for (i in 1:10){
set[[i]] <- complete(imp,i)}
Again, no success. It only saves a couple of lines of code, but there must
be an easy solution, right?
Thanks,
Florian
--
View this message in context:
http://r.789695.n4.nabble.com/Loop-tp4409865p4409865.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.