Dear all,
I ran four batches of oSCR models using make.mods() function, each consisting of 8 models. The result was four batch outputs, i.e. list objects ("out1", "out2", "out3", "out4"), contatining results for 32 models in total. I tried to use the following code for model selection; two examples for "out1" are given:
# example 1
mod_sel_out1 <- fitList.oSCR(out1, rename = T)
# example 2
for (i in seq_along(out1)) {
assign(paste0("m", i), out1[[i]])
}
mod_sel_out1 <- fitList.oSCR(list(m0, m1, m2, m3, m4, m5, m6, m7, m8), rename=TRUE)
For both, I received the same error:
Error in FUN(X[[i]], ...) : object 'tmp' not found
What is surprising is that if I remove the "rename = T" part, the code works.
But with so many models, it would be really useful to have the model structure given in the AIC table, not just the model index which is not so intuitive to link to the model structure.
As I used exactly the same code without any errors in the past, I am
very confused what is going on now. Is it possible that it might be a
"hardware" issue, e.g. too little strorage space on the computer (I do
have these issues indeed...)?
Moreover, if we solve this mystery, is it possible to get output for all output objects ("out1" to "out4") at the same time i.e., add them to a single fitList.oSCR() function?
Any advice is most welcome.
Thanks in advance,
Urša