Re: [R] pulling out coefficients

2013-09-23 Thread Rui Barradas
Hello, Maybe something like the following. cf <- vector("list", 500) for (i in 1:500){ s <- paste0("Chain",i) cf[[i]] <- mi.txt.i@imp[[s]]$cont.y.obs@model$coefficients } Hope this helps, Rui Barradas Em 23-09-2013 14:17, Andrea Lamont escreveu: Hello: I am running a simul

[R] pulling out coefficients

2013-09-23 Thread Andrea Lamont
Hello: I am running a simulation in which need to pull out the coefficients of a multiply imputed object for each simulation. The coefficientscould be called using the following command: mi.txt.i@imp$Chain1$cont.y.obs@model$coefficients THis gives me the coefficients for the first imputation (Ch