Conditional variable importance error

27 views
Skip to first unread message

Christoph Ruehlemann

unread,
Jul 23, 2024, 12:16:18 PM7/23/24
to statforli...@googlegroups.com
Hi All,

I'm doing a Random Forest analysis (perturb = list(replace = TRUE), ntree = 1500, mtry = 3) using the cforest function from the library partykit with a large number of predictor variables (altogether 13) and want to determine conditional variable importances using the varimp function. However, I get this error:

Error in FUN(model = model, trafo = trafo, data = data, subset = subset,  : 
  NROW(Y) == length(ix) is not TRUE

Interestingly, when I do conditional = FALSE, everything works fine - no error. Does anyone know the error and know how to get rid of it?


Many thanks


Christoph


--
Albert-Ludwigs-Universität Freiburg
Projekt-Leiter DFG-Forschungsprojekt "Multimodale Turn-Abschlusssignale"

ἰχθύς
Reply all
Reply to author
Forward
0 new messages