Error with fitList.oSCR()

10 views
Skip to first unread message

Ursa Flezar

unread,
Jul 24, 2024, 3:36:34 AM7/24/24
to oSCR
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


Daniel Linden

unread,
Jul 24, 2024, 8:50:59 AM7/24/24
to oSCR
Hi Urša, can you share the summary output for a single model?  Whether m0, m1, etc.

To combine lists, you just need the combine function:
all_out <- c(out1,out2,out3,out4)
fitList.oSCR(all_out)
Reply all
Reply to author
Forward
0 new messages