ck37/varimpact

Error

ahubb40 opened this issue · 8 comments

I get the following error.

numValues: 12, numResults: 12, stopped: TRUE
calling combine function
evaluating call object to combine results:
fun(accum, result.1, result.2, result.3, result.4, result.5,
result.6, result.7, result.8, result.9, result.10, result.12)
returning status TRUE
Error in { :
task 11 failed - "attempt to select less than one element in get1index"

Follow-up, all variables get "returning status FALSE", so perhaps it is an error if there are no variables that get through screening process.

ck37 commented

Hmm sorry about that, what does your SuperLearner library look like?

SL.library <- c("SL.glmnet","SL.randomForest","SL.mean")

But, I'm guessing it never gets to that because of the screening. It's very small sample sizes, so wouldn't surprise me.

ck37 commented

It looks like the 11th variable in that section (either factors or numerics) is what is causing the error - if you run with verbose = T and verbose_tmle = T does it provide more details around that variable?

I get same output when I do that. I'm not sure it ever gets to the TMLE part.

ck37 commented

Yep I hear you on that. I think I will need to dig into the code as it's running to figure this out - is it possible to send over the data & script?

Also do you know if you're running this in parallel or not? Because it will usually hide a lot of the debugging output when run in parallel. If you specify parallel = F that will ensure that it runs sequentially.

ck37 commented

Closing this issue since the parallel backend is now future; I believe that the issue is likely fixed.